Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/themes/themes_eh.php
Show First 20 Lines • Show All 78 Lines • ▼ Show 20 Line(s) | |||||
public function getPassedID(kEvent $event) | public function getPassedID(kEvent $event) | ||||
{ | { | ||||
if ( $event->Special == 'current' ) { | if ( $event->Special == 'current' ) { | ||||
$theme_id = $this->Application->GetVar('m_theme'); | $theme_id = $this->Application->GetVar('m_theme'); | ||||
if ( !$theme_id ) { | if ( !$theme_id ) { | ||||
$theme_id = 'default'; | $theme_id = 'default'; | ||||
} | } | ||||
else { | |||||
$event->setEventParam(kEvent::FLAG_ID_FROM_REQUEST, true); | |||||
} | |||||
$this->Application->SetVar('m_theme', $theme_id); | $this->Application->SetVar('m_theme', $theme_id); | ||||
$this->Application->SetVar($event->getPrefixSpecial() . '_id', $theme_id); | $this->Application->SetVar($event->getPrefixSpecial() . '_id', $theme_id); | ||||
return $theme_id; | return $theme_id; | ||||
} | } | ||||
return parent::getPassedID($event); | return parent::getPassedID($event); | ||||
▲ Show 20 Lines • Show All 168 Lines • Show Last 20 Lines |