: 20090827 // Must get the actual site $code = 'VSS'; $site = $this->find ('first', array('recursive' => -1, 'conditions' => compact('code'))); if (!empty($site['Site']['id'])) self::$current_site_id = $site['Site']['id']; else // We must force a stop here, since this is typically // called very early on, and so will cause a recursive // crash as we try to render the internal error and // again stumble on this problem. $this->INTERNAL_ERROR('UNKNOWN SITE', 0, true); return self::$current_site_id; } } ?>