Пример #1
0
 public static function currentSite($siteId = null)
 {
     $_this = Sites::getInstance();
     self::$_site = $_this->_getSite($siteId);
     $_this->_overrideSetting(array('title', 'tagline', 'theme', 'timezone', 'locale', 'status'));
     if (!empty(self::$_site['SiteMeta'])) {
         $_this->_overrideMeta();
     }
     CakeSession::write(self::$_sessionKey, self::$_site);
     return self::$_site;
 }