]> git.mjollnir.org Git - moodle.git/commitdiff
Remove a few unnecessary references to global $THEME.
authortjhunt <tjhunt>
Thu, 25 Jun 2009 03:26:58 +0000 (03:26 +0000)
committertjhunt <tjhunt>
Thu, 25 Jun 2009 03:26:58 +0000 (03:26 +0000)
admin/report/unittest/ex_reporter.php
blocks/course_list/block_course_list.php
blocks/mnet_hosts/block_mnet_hosts.php
blocks/search_forums/block_search_forums.php
mod/quiz/edit.php

index 27a95ebc59ed2fe64b2279f5cb18c16e36bbe2c2..9bcf3ab02f8aaef98f628cf83c92130faf22d9fb 100644 (file)
@@ -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;
 
index 0522d1e15a8b6e3e9f05e0d5daa15810ff127141..ae1f5689e8cf5daba2ff4d92244fd1e468629c37 100644 (file)
@@ -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
index 002aa824a0269814de46d41c4aa2082333e85cb8..b6e7c038429fd3d6ce081ea34c691dbec29dc6c2 100644 (file)
@@ -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()) {
index 0fbc286f4ab017993ba0baf243979321426bc1ee..5bddd329e86e6e6fb56f4637285fe15ac6c2df6d 100644 (file)
@@ -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;
index 0fd54e4f43508d59c6e585b47167ac723a8b557c..006b71e0d22c8fce2ff440f55dece9e491a32816 100644 (file)
@@ -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)) {