From: tjhunt Date: Fri, 16 Jan 2009 07:34:29 +0000 (+0000) Subject: formslib / tags: MDL-17889 debugging message if you try to create a tags field when... X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=8942fd77be4ecd19ba91dddeadedb59b539d2c5f;p=moodle.git formslib / tags: MDL-17889 debugging message if you try to create a tags field when $CFG->usertags if false. --- diff --git a/lib/form/tags.php b/lib/form/tags.php index 1b82f5d4c0..93c626903f 100644 --- a/lib/form/tags.php +++ b/lib/form/tags.php @@ -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() {