Changeset View
Changeset View
Standalone View
Standalone View
core/install.php
Show First 20 Lines • Show All 876 Lines • ▼ Show 20 Line(s) | |||||
$this->toolkit->saveConfigValues($config_values); | $this->toolkit->saveConfigValues($config_values); | ||||
$user_helper = $this->Application->recallObject('UserHelper'); | $user_helper = $this->Application->recallObject('UserHelper'); | ||||
/* @var $user_helper UserHelper */ | /* @var $user_helper UserHelper */ | ||||
// login as "root", when no errors on password screen | // login as "root", when no errors on password screen | ||||
$user_helper->loginUser('root', $this->Application->GetVar('root_password')); | $user_helper->loginUser('root', $this->Application->GetVar('root_password')); | ||||
// import base language for core (english) | // import base language for core (english) | ||||
Lint: CodingStandard.Commenting.InlineComment.InvalidEndChar: Inline comments must end in full-stops, exclamation marks, or question marks | |||||
Inline comments must start with a capital letter Lint: CodingStandard.Commenting.InlineComment.NotCapital: Inline comments must start with a capital letter | |||||
$this->toolkit->ImportLanguage('/core/install/english'); | $this->toolkit->ImportLanguage('/core/install/english', false); | ||||
// make sure imported language is set as active in session, created during installation | // make sure imported language is set as active in session, created during installation | ||||
$this->Application->Session->SetField('Language', 1); | $this->Application->Session->SetField('Language', 1); | ||||
// set imported language as primary | // set imported language as primary | ||||
$lang = $this->Application->recallObject('lang.-item', null, Array('skip_autoload' => true)); | $lang = $this->Application->recallObject('lang.-item', null, Array('skip_autoload' => true)); | ||||
/* @var $lang LanguagesItem */ | /* @var $lang LanguagesItem */ | ||||
▲ Show 20 Lines • Show All 106 Lines • ▼ Show 20 Line(s) | |||||
} | } | ||||
// 2. import language pack, perform "languagepack" upgrade for all upgraded versions | // 2. import language pack, perform "languagepack" upgrade for all upgraded versions | ||||
foreach ($modules as $module_name) { | foreach ($modules as $module_name) { | ||||
$module_info = $upgrade_data[$module_name]; | $module_info = $upgrade_data[$module_name]; | ||||
$sqls =& $this->getUpgradeQueriesFromVersion($module_info['Path'], $module_info['FromVersion']); | $sqls =& $this->getUpgradeQueriesFromVersion($module_info['Path'], $module_info['FromVersion']); | ||||
preg_match_all('/' . VERSION_MARK . '/s', $sqls, $regs); | preg_match_all('/' . VERSION_MARK . '/s', $sqls, $regs); | ||||
// import module language pack | // import module language pack | ||||
Inline comments must start with a capital letter Lint: CodingStandard.Commenting.InlineComment.NotCapital: Inline comments must start with a capital letter | |||||
Inline comments must end in full-stops, exclamation marks, or question marks Lint: CodingStandard.Commenting.InlineComment.InvalidEndChar: Inline comments must end in full-stops, exclamation marks, or question marks | |||||
$this->toolkit->ImportLanguage('/' . $module_info['Path'] . 'install/english', true); | $this->toolkit->ImportLanguage('/' . $module_info['Path'] . 'install/english'); | ||||
// perform advanced language pack upgrade | // perform advanced language pack upgrade | ||||
foreach ($regs[1] as $version) { | foreach ($regs[1] as $version) { | ||||
$this->RunUpgradeScript($module_info['Path'], $version, 'languagepack'); | $this->RunUpgradeScript($module_info['Path'], $version, 'languagepack'); | ||||
} | } | ||||
} | } | ||||
// 3. update all theme language packs | // 3. update all theme language packs | ||||
▲ Show 20 Lines • Show All 764 Lines • Show Last 20 Lines |
Inline comments must end in full-stops, exclamation marks, or question marks