]> git.mjollnir.org Git - moodle.git/commitdiff
Better pages for hidden activities
authormoodler <moodler>
Thu, 30 Mar 2006 04:46:12 +0000 (04:46 +0000)
committermoodler <moodler>
Thu, 30 Mar 2006 04:46:12 +0000 (04:46 +0000)
mod/data/add.php
mod/data/view.php

index 2d39753bcf25fc59e0f2234c316cae5e33725d4d..7df103990e322d1caff57b6671a96fb188aeadea 100755 (executable)
 
 /// If it's hidden then it's don't show anything.  :)
     if (empty($cm->visible) and !isteacher($course->id)) {
+        $strdatabases = get_string("modulenameplural", "data");
+        $navigation = "<a href=\"index.php?id=$course->id\">$strdatabases</a> ->";
+        print_header_simple(format_string($data->name), "",
+                 "$navigation ".format_string($data->name), "", "", true, '', navmenu($course, $cm));
         notice(get_string("activityiscurrentlyhidden"));
     }
     
index 6d6c7366b005f1f58290b19a297741648728b2c3..f627017214d7cec956fcd7f58182566afdd52110 100755 (executable)
 
 /// If it's hidden then it's don't show anything.  :)
     if (empty($cm->visible) and !isteacher($course->id)) {
+        $strdatabases = get_string("modulenameplural", "data");
+        $navigation = "<a href=\"index.php?id=$course->id\">$strdatabases</a> ->";
+        print_header_simple(format_string($data->name), "",
+                 "$navigation ".format_string($data->name), "", "", true, '', navmenu($course, $cm));
         notice(get_string("activityiscurrentlyhidden"));
     }