question MDL-21169 removed update_module_button calls from question these are now added by the module extending the navigation if there is a module specified for question pages.
Also fixed bug in moodle_url object coding_error to coding_exception
This commit is contained in:
@@ -35,13 +35,7 @@
|
||||
$PAGE->set_url($thispageurl->out());
|
||||
$PAGE->set_title($strexportquestions);
|
||||
if ($cm!==null) {
|
||||
$strupdatemodule = has_capability('moodle/course:manageactivities', $contexts->lowest())
|
||||
? $OUTPUT->update_module_button($cm->id, $cm->modname)
|
||||
: "";
|
||||
$PAGE->navbar->add(get_string('modulenameplural', $cm->modname), new moodle_url($CFG->wwwroot.'/mod/'.$cm->modname.'/index.php', array('id'=>$COURSE->id)));
|
||||
$PAGE->navbar->add(format_string($module->name), new moodle_url($CFG->wwwroot.'/mod/'.$cm->modname.'/view.php', array('id'=>$cm->id)));
|
||||
$PAGE->navbar->add($strexportquestions);
|
||||
$PAGE->set_button($strupdatemodule);
|
||||
echo $OUTPUT->header();
|
||||
$currenttab = 'edit';
|
||||
$mode = 'export';
|
||||
|
||||
Reference in New Issue
Block a user