Merge branch 'wip-mdl-48174' of https://github.com/rajeshtaneja/moodle
This commit is contained in:
@@ -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
@@ -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.
|
||||
|
||||
Reference in New Issue
Block a user