From c207b6becefc882bdf6bb3080f92f5d1a41a7500 Mon Sep 17 00:00:00 2001 From: tjhunt Date: Thu, 25 Jun 2009 03:26:58 +0000 Subject: [PATCH] Remove a few unnecessary references to global $THEME. --- admin/report/unittest/ex_reporter.php | 2 -- blocks/course_list/block_course_list.php | 4 ++-- blocks/mnet_hosts/block_mnet_hosts.php | 2 +- blocks/search_forums/block_search_forums.php | 2 +- mod/quiz/edit.php | 2 +- 5 files changed, 5 insertions(+), 7 deletions(-) diff --git a/admin/report/unittest/ex_reporter.php b/admin/report/unittest/ex_reporter.php index 27a95ebc59e..9bcf3ab02f8 100644 --- a/admin/report/unittest/ex_reporter.php +++ b/admin/report/unittest/ex_reporter.php @@ -41,8 +41,6 @@ class ExHtmlReporter extends HtmlReporter { * @param bool $showpasses Whether this reporter should output anything for passes. */ function ExHtmlReporter($showpasses) { - global $CFG, $THEME; - $this->HtmlReporter(); $this->showpasses = $showpasses; diff --git a/blocks/course_list/block_course_list.php b/blocks/course_list/block_course_list.php index 0522d1e15a8..ae1f5689e8c 100644 --- a/blocks/course_list/block_course_list.php +++ b/blocks/course_list/block_course_list.php @@ -13,7 +13,7 @@ class block_course_list extends block_list { } function get_content() { - global $THEME, $CFG, $USER, $DB; + global $CFG, $USER, $DB; if($this->content !== NULL) { return $this->content; @@ -109,7 +109,7 @@ class block_course_list extends block_list { } function get_remote_courses() { - global $THEME, $CFG, $USER; + global $CFG, $USER; if (!is_enabled_auth('mnet')) { // no need to query anything remote related diff --git a/blocks/mnet_hosts/block_mnet_hosts.php b/blocks/mnet_hosts/block_mnet_hosts.php index 002aa824a02..b6e7c038429 100644 --- a/blocks/mnet_hosts/block_mnet_hosts.php +++ b/blocks/mnet_hosts/block_mnet_hosts.php @@ -19,7 +19,7 @@ class block_mnet_hosts extends block_list { } function get_content() { - global $THEME, $CFG, $USER, $DB; + global $CFG, $USER, $DB; // only for logged in users! if (!isloggedin() || isguest()) { diff --git a/blocks/search_forums/block_search_forums.php b/blocks/search_forums/block_search_forums.php index 0fbc286f4ab..5bddd329e86 100644 --- a/blocks/search_forums/block_search_forums.php +++ b/blocks/search_forums/block_search_forums.php @@ -7,7 +7,7 @@ class block_search_forums extends block_base { } function get_content() { - global $CFG, $THEME; + global $CFG; if($this->content !== NULL) { return $this->content; diff --git a/mod/quiz/edit.php b/mod/quiz/edit.php index 0fd54e4f435..006b71e0d22 100644 --- a/mod/quiz/edit.php +++ b/mod/quiz/edit.php @@ -76,7 +76,7 @@ function module_specific_buttons($cmid, $cmoptions) { * (which is called from showbank()) */ function module_specific_controls($totalnumber, $recurse, $category, $cmid, $cmoptions) { - global $THEME, $QTYPES; + global $QTYPES; $out = ''; $catcontext = get_context_instance_by_id($category->contextid); if (has_capability('moodle/question:useall', $catcontext)) {