mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
MDL-20447 - bulk upload: add page heading
This commit is contained in:
parent
5dd61a54b7
commit
0f56fde284
9 changed files with 15 additions and 12 deletions
|
@ -80,18 +80,19 @@ if (!empty($appendqnumstring)) {
|
|||
$PAGE->set_url('/question/addquestion.php', $hiddenparams);
|
||||
|
||||
$chooseqtype = get_string('chooseqtypetoadd', 'question');
|
||||
$PAGE->set_heading($COURSE->fullname);
|
||||
if ($cm !== null) {
|
||||
if (stripos($returnurl, "$CFG->wwwroot/mod/{$cm->modname}/view.php")!== 0) {
|
||||
//don't need this link if returnurl returns to view.php
|
||||
$PAGE->navbar->add(get_string('editinga', 'moodle', get_string('modulename', $cm->modname)),$returnurl);
|
||||
}
|
||||
$PAGE->navbar->add($chooseqtype);
|
||||
$PAGE->set_title($chooseqtype);
|
||||
$PAGE->set_title($chooseqtype);
|
||||
echo $OUTPUT->header();
|
||||
} else {
|
||||
$PAGE->navbar->add(get_string('questionbank', 'question'),$returnurl);
|
||||
$PAGE->navbar->add($chooseqtype);
|
||||
$PAGE->set_title($chooseqtype);
|
||||
$PAGE->set_title($chooseqtype);
|
||||
echo $OUTPUT->header();
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue