Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix for bug 1527:

The New Event button is back in day view. Silly mistake, $USER wasn't taken
from the globals and thus it always thought you weren't logged in.
  • Loading branch information...
commit b1bd2cf0c1ab78398716d1e7f8c255ca4c9146cc 1 parent 1cbcc2c
defacer authored
Showing with 1 addition and 2 deletions.
  1. +1 −2  calendar/view.php
View
3  calendar/view.php
@@ -183,7 +183,7 @@
function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
- global $CFG, $THEME, $db;
+ global $CFG, $THEME, $USER, $db;
if (!checkdate($m, $d, $y)) {
$now = usergetdate(time());
@@ -200,7 +200,6 @@ function calendar_show_day($d, $m, $y, $courses, $groups, $users) {
// New event button
if (empty($USER) || isguest()) {
$text = get_string('dayview', 'calendar').': '.calendar_course_filter_selector($getvars);
-
} else {
$text = '<div style="float: left;">'.get_string('dayview', 'calendar').': '.
calendar_course_filter_selector($getvars).'</div><div style="float: right;">';
Please sign in to comment.
Something went wrong with that request. Please try again.