Index: branches/5.2.x/core/units/site_domains/site_domain_eh.php =================================================================== diff -u -N -r14941 -r14989 --- branches/5.2.x/core/units/site_domains/site_domain_eh.php (.../site_domain_eh.php) (revision 14941) +++ branches/5.2.x/core/units/site_domains/site_domain_eh.php (.../site_domain_eh.php) (revision 14989) @@ -1,6 +1,6 @@ Name == 'OnItemBuild') { + if ( $event->Name == 'OnItemBuild' ) { // check permission without using $event->getSection(), // so first cache rebuild won't lead to "ldefault_Name" field being used return true; @@ -38,15 +38,17 @@ * Returns ID of site domain, that matches current url * * @param kEvent $event + * @return int + * @access public */ - function getPassedID(&$event) + public function getPassedID(kEvent &$event) { - if ($event->Special == 'current') { - if ($this->Application->isAdmin) { + if ( $event->Special == 'current' ) { + if ( $this->Application->isAdmin ) { $event->setEventParam('raise_warnings', 0); } else { - if (PROTOCOL == 'https://') { + if ( PROTOCOL == 'https://' ) { return $this->querySiteDomain('SSLUrl', rtrim($this->Application->BaseURL(), '/')); } @@ -103,8 +105,10 @@ * Load item if id is available * * @param kEvent $event + * @return void + * @access protected */ - function LoadItem(&$event) + protected function LoadItem(kEvent &$event) { if ( $this->Application->isAdmin ) { // don't load domain data from cache