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:
commit
aee7ec4cb2
|
@ -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';
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue