MDL-48174 tool_langimport: info about skipped update
authorDan Poltawski <dan@moodle.com>
Wed, 12 Nov 2014 11:22:45 +0000 (11:22 +0000)
committerDan Poltawski <dan@moodle.com>
Wed, 12 Nov 2014 11:24:21 +0000 (11:24 +0000)
So admins can work out why the task might not be having an effect.

admin/tool/langimport/classes/task/update_langpacks_task.php

index dfdcb5d..205f2fe 100644 (file)
@@ -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;
         }