From 1d8a829a5441496eba46f3540b6ecc95988ab81c Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 30 Mar 2006 04:46:12 +0000 Subject: [PATCH] Better pages for hidden activities --- mod/data/add.php | 4 ++++ mod/data/view.php | 4 ++++ 2 files changed, 8 insertions(+) diff --git a/mod/data/add.php b/mod/data/add.php index 2d39753bcf..7df103990e 100755 --- a/mod/data/add.php +++ b/mod/data/add.php @@ -59,6 +59,10 @@ /// 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 = "id\">$strdatabases ->"; + print_header_simple(format_string($data->name), "", + "$navigation ".format_string($data->name), "", "", true, '', navmenu($course, $cm)); notice(get_string("activityiscurrentlyhidden")); } diff --git a/mod/data/view.php b/mod/data/view.php index 6d6c7366b0..f627017214 100755 --- a/mod/data/view.php +++ b/mod/data/view.php @@ -87,6 +87,10 @@ /// 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 = "id\">$strdatabases ->"; + print_header_simple(format_string($data->name), "", + "$navigation ".format_string($data->name), "", "", true, '', navmenu($course, $cm)); notice(get_string("activityiscurrentlyhidden")); } -- 2.39.5