From 9ed66e56b5ae268e78740f284866e45a4c2c245e Mon Sep 17 00:00:00 2001 From: defacer Date: Mon, 30 Aug 2004 06:47:45 +0000 Subject: [PATCH] Switching to using the new SITEID constant. --- blocks/calendar_month/block_calendar_month.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/blocks/calendar_month/block_calendar_month.php b/blocks/calendar_month/block_calendar_month.php index bbf15814d5..667ede4ff6 100644 --- a/blocks/calendar_month/block_calendar_month.php +++ b/blocks/calendar_month/block_calendar_month.php @@ -15,7 +15,6 @@ class CourseBlock_calendar_month extends MoodleBlock { require_once($CFG->dirroot.'/calendar/lib.php'); - $site = get_site(); if ($this->content !== NULL) { return $this->content; } @@ -38,7 +37,7 @@ class CourseBlock_calendar_month extends MoodleBlock { // Be VERY careful with the format for default courses arguments! // Correct formatting is [courseid] => 1 to be concise with moodlelib.php functions. calendar_set_filters($courses, $group, $user, $filtercourse, $filtercourse); - if ($courseshown == $site->id) { + if ($courseshown == SITEID) { // For the front page $this->content->text .= calendar_overlib_html(); $this->content->text .= calendar_top_controls('frontpage', array('m' => $_GET['cal_m'], 'y' => $_GET['cal_y'])); -- 2.39.5