Changeset View
Changeset View
Standalone View
Standalone View
branches/5.2.x/core/kernel/languages/phrases_cache.php
Show First 20 Lines • Show All 196 Lines • ▼ Show 20 Line(s) | |||||
else { | else { | ||||
$language_id = $this->Application->GetVar('m_lang'); | $language_id = $this->Application->GetVar('m_lang'); | ||||
} | } | ||||
} | } | ||||
$this->LanguageId = $language_id; | $this->LanguageId = $language_id; | ||||
if (!$this->Application->isAdmin && $this->Application->GetVar('admin')) { | if (!$this->Application->isAdmin && $this->Application->GetVar('admin')) { | ||||
/** @var Session $admin_session */ | |||||
$admin_session = $this->Application->recallObject('Session.admin'); | $admin_session = $this->Application->recallObject('Session.admin'); | ||||
/* @var $admin_session Session */ | |||||
$this->AdminLanguageId = $admin_session->GetField('Language'); | $this->AdminLanguageId = $admin_session->GetField('Language'); | ||||
} | } | ||||
} | } | ||||
$this->LoadPhrases($phrase_ids); | $this->LoadPhrases($phrase_ids); | ||||
} | } | ||||
▲ Show 20 Lines • Show All 192 Lines • ▼ Show 20 Line(s) | |||||
{ | { | ||||
$reserved = Array('"', "'"); // = | $reserved = Array('"', "'"); // = | ||||
$replacement = Array('\"', "\'"); // \= | $replacement = Array('\"', "\'"); // \= | ||||
return str_replace($reserved, $replacement, $text); | return str_replace($reserved, $replacement, $text); | ||||
} | } | ||||
} | } | ||||
No newline at end of file | No newline at end of file |