Merge branch 'ent-6897-estilos-rotos-metaconsola' into 'develop'

Fixed broken styles in meta

See merge request artica/pandorafms!3743
This commit is contained in:
Daniel Rodriguez 2020-12-24 10:30:01 +01:00
commit aee7ec4cb2
2 changed files with 8 additions and 9 deletions

View File

@ -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';

View File

@ -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;
}