Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/units/languages/languages_event_handler.php
Show First 20 Lines • Show All 87 Lines • ▼ Show 20 Line(s) | |||||
return $this->Application->GetDefaultLanguageId(); | return $this->Application->GetDefaultLanguageId(); | ||||
} | } | ||||
elseif ( $event->Special == 'current' ) { | elseif ( $event->Special == 'current' ) { | ||||
$language_id = $this->Application->GetVar('m_lang'); | $language_id = $this->Application->GetVar('m_lang'); | ||||
if ( !$language_id ) { | if ( !$language_id ) { | ||||
$language_id = 'default'; | $language_id = 'default'; | ||||
} | } | ||||
else { | |||||
$event->setEventParam(kEvent::FLAG_ID_FROM_REQUEST, true); | |||||
} | |||||
$this->Application->SetVar('m_lang', $language_id); | $this->Application->SetVar('m_lang', $language_id); | ||||
$this->Application->SetVar($event->getPrefixSpecial() . '_id', $language_id); | $this->Application->SetVar($event->getPrefixSpecial() . '_id', $language_id); | ||||
return $language_id; | return $language_id; | ||||
} | } | ||||
return parent::getPassedID($event); | return parent::getPassedID($event); | ||||
▲ Show 20 Lines • Show All 717 Lines • Show Last 20 Lines |