diff --git a/calendar/lib.php b/calendar/lib.php
index 4f6439e387f..171f4f3f94a 100644
--- a/calendar/lib.php
+++ b/calendar/lib.php
@@ -774,18 +774,17 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL, $courses
if($SESSION->cal_show_global) {
$content .= '
 | ';
$content .= ''.get_string('global', 'calendar').' | '."\n";
- }
- else {
+ } else {
$content .= ' | ';
$content .= ''.get_string('global', 'calendar').' | '."\n";
}
if($SESSION->cal_show_course) {
- $content .= ' | ';
- $content .= ''.get_string('courseevents', 'calendar').' | '."\n";
- }
- else {
- $content .= ' | ';
- $content .= ''.get_string('courseevents', 'calendar').' | '."\n";
+ $content .= ' | ';
+ $content .= ''.get_string('course', 'calendar').' | '."\n";
+ } else {
+ $content .= ' | ';
+ $content .= ''.get_string('course', 'calendar').' | '."\n";
+
}
@@ -795,31 +794,22 @@ function calendar_filter_controls($type, $vars = NULL, $course = NULL, $courses
if($groupevents) {
// This course MIGHT have group events defined, so show the filter
if($SESSION->cal_show_groups) {
- $content .= ' | ';
- $content .= ''.get_string('groupevents', 'calendar').' | '."\n";
+ $content .= ' | ';
+ $content .= ''.get_string('group', 'calendar').' | '."\n";
} else {
- $content .= ' | ';
- $content .= ''.get_string('groupevents', 'calendar').' | '."\n";
+ $content .= ' | ';
+ $content .= ''.get_string('group', 'calendar').' | '."\n";
}
- if ($SESSION->cal_show_user) {
- $content .= ' | ';
- $content .= ''.get_string('userevents', 'calendar').' | '."\n";
- } else {
- $content .= ' | ';
- $content .= ''.get_string('userevents', 'calendar').' | '."\n";
- }
-
} else {
// This course CANNOT have group events, so lose the filter
$content .= ' | | '."\n";
-
- if($SESSION->cal_show_user) {
- $content .= ' | ';
- $content .= ''.get_string('userevents', 'calendar').' | '."\n";
- } else {
- $content .= ' | ';
- $content .= ''.get_string('userevents', 'calendar').' | '."\n";
- }
+ }
+ if($SESSION->cal_show_user) {
+ $content .= ' | ';
+ $content .= ''.get_string('user', 'calendar').' | '."\n";
+ } else {
+ $content .= ' | ';
+ $content .= ''.get_string('user', 'calendar').' | '."\n";
}
}
$content .= "\n\n";