Changeset View
Changeset View
Standalone View
Standalone View
core/kernel/languages/phrases_cache.php
Show First 20 Lines • Show All 195 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')) { | ||||
Lint: CodingStandard.WhiteSpace.ControlStructureSpacing.SpaceBeforeCloseBrace: Expected 1 spaces before "if" closing bracket; 0 found | |||||
Expected 1 spaces after "if" opening bracket; 0 found Lint: CodingStandard.WhiteSpace.ControlStructureSpacing.SpacingAfterOpenBrace: Expected 1 spaces after "if" opening bracket; 0 found | |||||
/** @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 |
Expected 1 spaces before "if" closing bracket; 0 found