From 9fad2dec0feef821fae1beec11b21dd16eb31d8a Mon Sep 17 00:00:00 2001
From: moodler <moodler>
Date: Tue, 1 Feb 2005 03:46:20 +0000
Subject: [PATCH] Removed $THEME from around the place

---
 mod/resource/lib.php                           | 2 +-
 mod/resource/type/directory/resource.class.php | 4 ++--
 mod/resource/type/file/resource.class.php      | 3 +--
 mod/resource/type/html/resource.class.php      | 6 +++---
 mod/resource/type/text/resource.class.php      | 6 +++---
 5 files changed, 10 insertions(+), 11 deletions(-)

diff --git a/mod/resource/lib.php b/mod/resource/lib.php
index 908a0dc6ad..5a37ef56a5 100644
--- a/mod/resource/lib.php
+++ b/mod/resource/lib.php
@@ -323,7 +323,7 @@ function resource_user_outline($course, $user, $mod, $resource) {
 
 
 function resource_user_complete($course, $user, $mod, $resource) {
-    global $CFG, $THEME;
+    global $CFG;
 
     if ($logs = get_records_select("log", "userid='$user->id' AND module='resource' 
                                            AND action='view' AND info='$resource->id'", "time ASC")) {
diff --git a/mod/resource/type/directory/resource.class.php b/mod/resource/type/directory/resource.class.php
index b5d6752f54..5e2bcc6d21 100644
--- a/mod/resource/type/directory/resource.class.php
+++ b/mod/resource/type/directory/resource.class.php
@@ -8,7 +8,7 @@ function resource_directory($cmid=0) {
 
 
 function display() {
-    global $CFG, $THEME;
+    global $CFG;
 
 /// Set up generic stuff first, including checking for access
     parent::display();
@@ -86,7 +86,7 @@ function display() {
         exit;
     }
 
-    print_simple_box_start("center", "", "$THEME->cellcontent", '0' );
+    print_simple_box_start("center", "", "", '0' );
 
     $strftime = get_string('strftimedatetime');
     $strname = get_string("name");
diff --git a/mod/resource/type/file/resource.class.php b/mod/resource/type/file/resource.class.php
index 32c4f80b7f..8791f88275 100644
--- a/mod/resource/type/file/resource.class.php
+++ b/mod/resource/type/file/resource.class.php
@@ -175,10 +175,9 @@ function update_instance($resource) {
 * Output depends on type of file resource.
 *
 * @param    CFG     global object
-* @param    THEME   global object
 */
 function display() {
-    global $CFG, $THEME;
+    global $CFG;
 
 /// Set up generic stuff first, including checking for access
     parent::display();
diff --git a/mod/resource/type/html/resource.class.php b/mod/resource/type/html/resource.class.php
index 22859f0a5c..bc0af38754 100644
--- a/mod/resource/type/html/resource.class.php
+++ b/mod/resource/type/html/resource.class.php
@@ -77,7 +77,7 @@ function update_instance($resource) {
 
 
 function display() {
-    global $CFG, $THEME;
+    global $CFG;
 
 /// Set up generic stuff first, including checking for access
     parent::display();
@@ -96,7 +96,7 @@ function display() {
             add_to_log($course->id, "resource", "view", "view.php?id={$cm->id}", $resource->id, $cm->id);
             print_header();
             print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), 
-                                         "center", "", "$THEME->cellcontent", "20");
+                                         "center", "", "", "20");
             print_footer($course);
         } else {                           /// Make a page and a pop-up window
 
@@ -132,7 +132,7 @@ function display() {
                      "", "", true, update_module_button($cm->id, $course->id, $this->strresource), 
                      navmenu($course, $cm));
     
-        print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "$THEME->cellcontent", "20");
+        print_simple_box(format_text($resource->alltext, FORMAT_HTML, $formatoptions, $course->id), "center", "", "", "20");
     
         $strlastmodified = get_string("lastmodified");
         echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</font></p></center>";
diff --git a/mod/resource/type/text/resource.class.php b/mod/resource/type/text/resource.class.php
index 90a38e513d..ed46fdc2bd 100644
--- a/mod/resource/type/text/resource.class.php
+++ b/mod/resource/type/text/resource.class.php
@@ -75,7 +75,7 @@ function update_instance($resource) {
 }
 
 function display() {
-    global $CFG, $THEME;
+    global $CFG;
 
 /// Set up generic stuff first, including checking for access
     parent::display();
@@ -95,7 +95,7 @@ function display() {
                        $resource->id, $cm->id);
             print_header();
             print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id), 
-                             "center", "", "$THEME->cellcontent", "20");
+                             "center", "", "", "20");
             print_footer($course);
         } else {                           /// Make a page and a pop-up window
 
@@ -132,7 +132,7 @@ function display() {
                      navmenu($course, $cm));
     
         print_simple_box(format_text($resource->alltext, $resource->options, $formatoptions, $course->id), 
-                         "center", "", "$THEME->cellcontent", "20");
+                         "center", "", "", "20");
     
         $strlastmodified = get_string("lastmodified");
         echo "<center><p><font size=\"1\">$strlastmodified: ".userdate($resource->timemodified)."</font></p></center>";
-- 
2.39.5