]> git.mjollnir.org Git - moodle.git/commitdiff
formslib / tags: MDL-17889 debugging message if you try to create a tags field when...
authortjhunt <tjhunt>
Fri, 16 Jan 2009 07:34:29 +0000 (07:34 +0000)
committertjhunt <tjhunt>
Fri, 16 Jan 2009 07:34:29 +0000 (07:34 +0000)
lib/form/tags.php

index 1b82f5d4c0d2029b6c60f8121b6fc3a576c3451e..93c626903fc1f2710f73fe74c46134fe88baa6c9 100644 (file)
@@ -85,6 +85,10 @@ class MoodleQuickForm_tags extends MoodleQuickForm_group {
                 }
             }
         }
+        global $CFG;
+        if (empty($CFG->usetags)) {
+            debugging('A tags formslib field has been created even thought $CFG->usetags is false.', DEBUG_DEVELOPER);
+        }
     }
 
     protected function _load_official_tags() {