public function __construct($lang, $defaultLang) { if (empty($lang)) { $lang = CookieStorage::get('locale', Config::getDefaultLang()); } $this->lang = $lang; $this->defaultLang = $defaultLang; }
public function getCurrentTheme() { return CookieStorage::get(self::$COOKIE_NAME, $this->getDefaultTheme()); }