need include preferences css manually, if running under a different app

This commit is contained in:
Ralf Becker 2013-10-05 16:49:57 +00:00
parent a61dea2677
commit a3006e87bc

View File

@ -121,9 +121,13 @@ class preferences_settings
$msg = $this->process_array($GLOBALS['egw']->preferences->$attribute,
(array)$GLOBALS['egw']->preferences->{$attribute}[$appname], $preserve['types'], $appname, $attribute, true);
}
// get sidebox of given app
if ($appname != 'common') $GLOBALS['egw_info']['flags']['currentapp'] = $appname;
// get sidebox menu of given app
if ($appname != 'common')
{
$GLOBALS['egw_info']['flags']['currentapp'] = $appname;
// need to include our css
egw_framework::includeCSS('preferences','app');
}
if ($msg) egw_framework::message($msg, $msg_type ? $msg_type : 'error');
$tpl->exec('preferences.preferences_settings.index', $content, $sel_options, $readonlys, $preserve);