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 90 Lines • ▼ Show 20 Line(s) | |||||
$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'; | ||||
} | } | ||||
$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 parent::getPassedID($event); | return parent::getPassedID($event); | ||||
} | } | ||||
/** | /** | ||||
* [HOOK] Updates table structure on new language adding/removing language | * [HOOK] Updates table structure on new language adding/removing language | ||||
* | * | ||||
▲ Show 20 Lines • Show All 712 Lines • Show Last 20 Lines |