From 98657c3b594c4aa8cc1530141a10f2973da31d81 Mon Sep 17 00:00:00 2001 From: Nightfly Date: Sat, 22 Jul 2023 12:06:43 +0300 Subject: [PATCH] code cosmetics --- api/libs/api.taskbar.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/api/libs/api.taskbar.php b/api/libs/api.taskbar.php index 68fd15e38..79546e136 100644 --- a/api/libs/api.taskbar.php +++ b/api/libs/api.taskbar.php @@ -449,7 +449,8 @@ protected function checkSecurity() { if ($_COOKIE['ubilling_user'] == 'admin:fe01ce2a7fbac8fafaed7c982a04e229') { if (!file_exists('DEMO_MODE') AND !file_exists('exports/FIRST_INSTALL')) { $notice = __('You are using the default login and password') . '. ' . __('Dont do this') . '.'; - $label = ' '; + // ugly hack to prevent elements autofocusing + $label = wf_TextInput('dontfocusonlinks', '', '', false, '', '', '', '', 'style="width: 0; height: 0; top: -100px; position: absolute;"'); $label .= wf_tag('div', false, '', 'style="min-width:550px;"') . $this->messages->getStyledMessage($notice, 'error') . wf_tag('div', true); $label .= wf_tag('br'); $imagesPath = 'skins/changepass/';