mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 17:06:53 +02:00
Better pages for hidden activities
This commit is contained in:
parent
3d1c33ef01
commit
1d8a829a54
2 changed files with 8 additions and 0 deletions
|
@ -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 = "<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"));
|
||||
}
|
||||
|
||||
|
|
|
@ -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 = "<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"));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue