### Eclipse Workspace Patch 1.0
#P moodle19
Index: calendar/lib.php
===================================================================
RCS file: /cvsroot/moodle/moodle/calendar/lib.php,v
retrieving revision 1.206.2.3
diff -u -r1.206.2.3 lib.php
--- calendar/lib.php 30 Oct 2007 16:18:09 -0000 1.206.2.3
+++ calendar/lib.php 8 Nov 2007 14:03:11 -0000
@@ -774,18 +774,17 @@
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 @@
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";