mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 21:57:51 +02:00
info panel improvements
This commit is contained in:
@@ -27,10 +27,15 @@ if(vartrue($_GET['iframe']) == 1)
|
||||
|
||||
$e_sub_cat = 'main';
|
||||
|
||||
if($pref['adminstyle'] == 'infopanel')
|
||||
if(strpos($pref['adminstyle'], 'infopanel') === 0)
|
||||
{
|
||||
require_once(e_ADMIN.'includes/'.$pref['adminstyle'].'.php');
|
||||
$adp = new adminstyle_infopanel;
|
||||
$_class = 'adminstyle_'.$pref['adminstyle'];
|
||||
if(class_exists($_class, false))
|
||||
{
|
||||
$adp = new $_class;
|
||||
}
|
||||
else $adp = new adminstyle_infopanel;
|
||||
}
|
||||
|
||||
|
||||
|
Reference in New Issue
Block a user