MDL-31181 fix missing global $CFG that was breaking unit test teardown
authorPetr Skoda <commits@skodak.org>
Sat, 21 Jan 2012 16:07:59 +0000 (17:07 +0100)
committerPetr Skoda <commits@skodak.org>
Sat, 21 Jan 2012 16:07:59 +0000 (17:07 +0100)
lib/simpletest/testfilterconfig.php

index 28ad2df..379fc11 100644 (file)
@@ -785,6 +785,7 @@ class filter_filter_set_applies_to_strings extends UnitTestCaseUsingDatabase {
     }
 
     public function tearDown() {
+        global $CFG;
         $CFG->stringfilters = $this->origcfgstringfilters;
         $CFG->filterall = $this->origcfgfilterall;