/** * get the current style * * use always this function instead of getting the account's style * the current style may be changed on the fly by setCurrentStyle() * @return string style id */ public static function getCurrentMasterStyle() { global $ilias; if (isset(self::$current_master_style)) { return self::$current_master_style; } $cs = $ilias->account->prefs['style']; self::$current_master_style = $cs; return $cs; }