mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-13050 Reverting, it's not working out as well as planned
This commit is contained in:
parent
e5eabf22fe
commit
6dac764d18
6 changed files with 7 additions and 127 deletions
|
@ -225,35 +225,16 @@
|
|||
$strwaitingapproval = get_string('waitingapproval', 'glossary');
|
||||
|
||||
/// If we are in approval mode, prit special header
|
||||
$navlinks = array();
|
||||
$navlinks[] = array(
|
||||
'name' => get_string('grades'),
|
||||
'link' => $CFG->wwwroot . '/grade/report/index.php?id=' . $cm->course,
|
||||
'type' => 'link');
|
||||
$navlinks[] = array(
|
||||
'name' => get_string('modulenameplural', $cm->modname),
|
||||
'link' => $CFG->wwwroot . '/mod/' . $cm->modname . '/index.php?id=' . $cm->course,
|
||||
'type' => 'activity');
|
||||
$navlinks[] = array(
|
||||
'name' => format_string($cm->name),
|
||||
'link' => $CFG->wwwroot . '/mod/' . $cm->modname . '/view.php?id=' . $cm->id,
|
||||
'type' => 'activityinstance');
|
||||
|
||||
if ($tab == GLOSSARY_APPROVAL_VIEW) {
|
||||
require_capability('mod/glossary:approve', $context);
|
||||
|
||||
$navlinks[] = array(
|
||||
'name' => $strwaitingapproval,
|
||||
'link' => '',
|
||||
'type' => 'title');
|
||||
|
||||
$navigation = build_navigation($navlinks);
|
||||
$navigation = build_navigation($strwaitingapproval, $cm);
|
||||
print_header_simple(format_string($glossary->name), "", $navigation, "", "", true,
|
||||
update_module_button($cm->id, $course->id, $strglossary), navmenu($course, $cm));
|
||||
|
||||
print_heading($strwaitingapproval);
|
||||
} else { /// Print standard header
|
||||
$navigation = build_navigation($navlinks);
|
||||
$navigation = build_navigation('', $cm);
|
||||
print_header_simple(format_string($glossary->name), "", $navigation, "", "", true,
|
||||
update_module_button($cm->id, $course->id, $strglossary), navmenu($course, $cm));
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue