Skip to content

Commit

Permalink
fixed missing global cfg
Browse files Browse the repository at this point in the history
  • Loading branch information
skodak committed Sep 17, 2010
1 parent 4fb35be commit 6be8c6b
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions calendar/renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ public function basic_export_form($allowthisweek, $allownextweek, $allownextmont
$output .= html_writer::start_tag('form', array('action'=>new moodle_url('/calendar/export_execute.php'), 'method'=>'get'));

$output .= html_writer::tag('div', get_string('iwanttoexport', 'calendar'));

$output .= html_writer::start_tag('div', array('class'=>'indent'));
$output .= html_writer::empty_tag('input', array('type'=>'radio', 'name'=>'preset_what', 'id'=>'pw_all', 'value'=>'all', 'checked'=>'checked'));
$output .= html_writer::tag('label', get_string('eventsall', 'calendar'), array('for'=>'pw_all'));
Expand All @@ -55,7 +55,7 @@ public function basic_export_form($allowthisweek, $allownextweek, $allownextmont
$output .= html_writer::tag('label', get_string('eventsrelatedtocourses', 'calendar'), array('for'=>'pw_course'));
$output .= html_writer::empty_tag('br');
$output .= html_writer::end_tag('div');

$output .= html_writer::tag('div', get_string('for', 'calendar').':');

$output .= html_writer::start_tag('div', array('class'=>'indent'));
Expand Down Expand Up @@ -109,7 +109,7 @@ public function basic_export_form($allowthisweek, $allownextweek, $allownextmont

/**
* Starts the standard layout for the page
*
*
* @return string
*/
public function start_layout() {
Expand Down Expand Up @@ -351,7 +351,7 @@ public function event(calendar_event $event, $showactions=true) {
*/
public function show_month_detailed(calendar_information $calendar) {
global $CALENDARDAYS;

$date = usergetdate(time());
list($d, $m, $y) = array($date['mday'], $date['mon'], $date['year']); // This is what we want to display

Expand Down Expand Up @@ -534,7 +534,7 @@ public function show_month_detailed(calendar_information $calendar) {
*/
protected function filter_selection_table(calendar_information $calendar) {
global $SESSION;

$output = html_writer::start_tag('div', array('class'=>'filters'));
$output .= html_writer::start_tag('table');
$output .= html_writer::start_tag('tr');
Expand Down Expand Up @@ -630,7 +630,7 @@ public function show_upcoming_events(calendar_information $calendar, $futuredays
* @return string
*/
protected function course_filter_selector(array $getvars = array(), $label=null) {
global $USER, $SESSION;
global $USER, $SESSION, $CFG;

if (!isloggedin() or isguestuser()) {
return '';
Expand Down

0 comments on commit 6be8c6b

Please sign in to comment.