]> git.mjollnir.org Git - moodle.git/commitdiff
Removed $THEME from around the place
authormoodler <moodler>
Tue, 1 Feb 2005 03:46:20 +0000 (03:46 +0000)
committermoodler <moodler>
Tue, 1 Feb 2005 03:46:20 +0000 (03:46 +0000)
mod/resource/lib.php
mod/resource/type/directory/resource.class.php
mod/resource/type/file/resource.class.php
mod/resource/type/html/resource.class.php
mod/resource/type/text/resource.class.php

index 908a0dc6ad56beb5449ca822830a799b66cd9eaf..5a37ef56a57ba37e045e08dbdbd89a9452ed349e 100644 (file)
@@ -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")) {
index b5d6752f54b100b95d78f527f77280421a96e9fb..5e2bcc6d21fc4742f5d377f2bb2e202aaf8c2b7e 100644 (file)
@@ -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");
index 32c4f80b7f5fd7ab198d455f5fb043bc2a22d838..8791f8827518d7983f9b0de7b510103a28cbe5f0 100644 (file)
@@ -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();
index 22859f0a5c55ea3af1881c57e2cb909304449c9b..bc0af38754af5832dfd6a9a1116da956ae3078f1 100644 (file)
@@ -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>";
index 90a38e513ded2a8eb239385481ff7cafe31f10ce..ed46fdc2bd55987f1954a5ad9d0b6b6bc96d1b1e 100644 (file)
@@ -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>";