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:
Sam Hemelryk
2009-12-23 02:45:22 +00:00
parent 92059c7ee5
commit d8ae33a95c
10 changed files with 5 additions and 67 deletions
-6
View File
@@ -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';