Removed $THEME from around the place

This commit is contained in:
moodler 2005-02-01 03:46:20 +00:00
parent a2df2a1ac0
commit 9fad2dec0f
5 changed files with 10 additions and 11 deletions

View 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")) {

View 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");

View 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();

View 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>";

View 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>";