]> git.mjollnir.org Git - moodle.git/commitdiff
Better notice for people not in a group who are trying to see a
authormoodler <moodler>
Tue, 24 Feb 2004 07:12:56 +0000 (07:12 +0000)
committermoodler <moodler>
Tue, 24 Feb 2004 07:12:56 +0000 (07:12 +0000)
SEPARATE activity.

lang/en/moodle.php
lib/moodlelib.php

index 22d62d7c1d7f85368b853f601dd96cfbedc49011..e1ff28a5e4bd839d41af8b2146a82cedfdebe4e6 100644 (file)
@@ -644,6 +644,7 @@ $string['notenrolled'] = '$a is not enrolled in this course.';
 $string['noteuserschangednonetocourse'] = 'Note: course users need to be restored when restoring user data. This setting has been changed for you.';
 $string['nothingnew'] = 'Nothing new since your last login';
 $string['notincluded'] = 'Not included';
+$string['notingroup'] = 'Sorry, but you need to be part of a group to see this activity.';
 $string['nousersmatching'] = 'No users matching \'$a\' were found';
 $string['nousersyet'] = 'There are no users yet';
 $string['now'] = 'now';
index 2e9ca0f3c77864e1813c127c5d4bdce53d66c904..32f95eb6d2341e546a69a03898b56d3d0e3ce304 100644 (file)
@@ -1200,8 +1200,8 @@ function setup_and_print_groups($course, $groupmode, $urlroot) {
         return false;
     }
 
-    if (!isteacheredit($course->id) and $groupmode and !$currentgroup) {
-        print_heading();
+    if ($groupmode == SEPARATEGROUPS and !isteacheredit($course->id) and !$currentgroup) {
+        print_heading(get_string('notingroup'));
         print_footer($course);
         exit;
     }