This commit is contained in:
Dan Poltawski
2014-11-12 11:03:43 +00:00
2 changed files with 8 additions and 1 deletions
@@ -45,6 +45,13 @@ class update_langpacks_task extends \core\task\scheduled_task {
* Run langpack update
*/
public function execute() {
global $CFG;
// No need to run upgrade, if skiplangupgrade is set.
if (!empty($CFG->skiplangupgrade)) {
return;
}
$controller = new \tool_langimport\controller();
if ($controller->update_all_installed_languages()) {
foreach ($controller->info as $message) {
+1 -1
View File
@@ -155,7 +155,7 @@ function behat_clean_init_config() {
'wwwroot', 'dataroot', 'dirroot', 'admin', 'directorypermissions', 'filepermissions',
'umaskpermissions', 'dbtype', 'dblibrary', 'dbhost', 'dbname', 'dbuser', 'dbpass', 'prefix',
'dboptions', 'proxyhost', 'proxyport', 'proxytype', 'proxyuser', 'proxypassword',
'proxybypass', 'theme', 'pathtogs', 'pathtoclam', 'pathtodu', 'aspellpath', 'pathtodot'
'proxybypass', 'theme', 'pathtogs', 'pathtoclam', 'pathtodu', 'aspellpath', 'pathtodot', 'skiplangupgrade'
));
// Add extra allowed settings.