diff --git a/pandora_console/general/login_page.php b/pandora_console/general/login_page.php index f7de626bb9..99496ce9c2 100755 --- a/pandora_console/general/login_page.php +++ b/pandora_console/general/login_page.php @@ -17,7 +17,7 @@ if (isset($config['homedir'])) { $homedir = ''; } -ui_require_css_file('login'); +ui_require_css_file('login', 'include/styles/', true); require_once __DIR__.'/../include/functions_ui.php'; require_once __DIR__.'/../include/functions.php'; diff --git a/pandora_console/include/functions_ui.php b/pandora_console/include/functions_ui.php index 27cf2646ef..03a5edc584 100755 --- a/pandora_console/include/functions_ui.php +++ b/pandora_console/include/functions_ui.php @@ -1473,16 +1473,15 @@ function ui_require_css_file($name, $path='include/styles/', $echo_tag=false) && ! file_exists($config['homedir'].'/'.$filename) && ! file_exists($config['homedir'].'/'.ENTERPRISE_DIR.'/'.$filename) ) { - if (is_metaconsole() === true - && file_exists('/../../'.$filename) === true - ) { - $filename = '/../../'.$filename; - } else { - return false; - } + return false; + } + + if (is_metaconsole()) { + $config['css'][$name] = '/../../'.$filename; + } else { + $config['css'][$name] = $filename; } - $config['css'][$name] = $filename; return true; }