mirror of
https://github.com/moodle/moodle.git
synced 2025-01-18 05:58:34 +01:00
MDL-48174 tool_langimport: info about skipped update
So admins can work out why the task might not be having an effect.
This commit is contained in:
parent
bfa16aa2fa
commit
271045e5d4
@ -47,8 +47,9 @@ class update_langpacks_task extends \core\task\scheduled_task {
|
||||
public function execute() {
|
||||
global $CFG;
|
||||
|
||||
// No need to run upgrade, if skiplangupgrade is set.
|
||||
if (!empty($CFG->skiplangupgrade)) {
|
||||
mtrace('Langpack update skipped. ($CFG->skiplangupgrade set)');
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user