From 8942fd77be4ecd19ba91dddeadedb59b539d2c5f Mon Sep 17 00:00:00 2001 From: tjhunt Date: Fri, 16 Jan 2009 07:34:29 +0000 Subject: [PATCH] formslib / tags: MDL-17889 debugging message if you try to create a tags field when $CFG->usertags if false. --- lib/form/tags.php | 4 ++++ 1 file changed, 4 insertions(+) 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() { -- 2.39.5