/** * Initialization. */ static function gallery_ready() { if (!get_cfg_var("date.timezone")) { if (!(rand() % 4)) { Kohana_Log::add("error", "date.timezone setting not detected in " . get_cfg_var("cfg_file_path") . " falling back to UTC. " . "Consult http://php.net/manual/function.get-cfg-var.php for help."); } } identity::load_user(); theme::load_themes(); locales::set_request_locale(); }
/** * Change the active user. * @param User_Definition $user */ static function set_active_user($user) { $session = Session::instance(); $session->set("user", $user); $session->delete("group_ids"); identity::load_user(); }
/** * Initialization. */ static function gallery_ready() { identity::load_user(); theme::load_themes(); locales::set_request_locale(); }