1
0
mirror of https://github.com/e107inc/e107.git synced 2025-04-20 12:41:51 +02:00

Fixed: e_header was not being loaded in admin area.

This commit is contained in:
Cameron 2013-03-18 22:12:27 -07:00
parent a76159f21c
commit fdb0d004b3

View File

@ -206,6 +206,9 @@ if (isset($eplug_css) && $eplug_css)
$e_js->otherCSS($kcss);
}
}
if(e107::getPref('admincss') == "admin_dark.css")
{
$e_js->coreCSS('bootstrap/css/darkstrap.css');
@ -219,9 +222,6 @@ if (!defsettrue('e_IFRAME') && isset($pref['admincss']) && $pref['admincss'])
//echo "<link rel='stylesheet' href='".$css_file."' type='text/css' />\n";
$e_js->themeCSS($css_file);
}
elseif (isset($pref['themecss']) && $pref['themecss'])
{
@ -337,6 +337,19 @@ if (vartrue($pref['e_meta_list']))
}
}
// --- Load plugin Header files --------
if (vartrue($pref['e_header_list']) && is_array($pref['e_header_list']))
{
foreach($pref['e_header_list'] as $val)
{
// no checks fore existing file - performance
e107_include(e_PLUGIN.$val."/e_header.php");
}
}
unset($e_headers);
//XXX - do we still need it? Now we have better way of doing this - admin tools (see below)
if (function_exists('headerjs'))
{