mirror of
https://github.com/moodle/moodle.git
synced 2025-04-16 14:02:32 +02:00
question MDL-19820 Added set_url calls with pre-generated var
This commit is contained in:
parent
a09f21d093
commit
5c0daafc3d
@ -76,6 +76,8 @@ if (!empty($appendqnumstring)) {
|
||||
$hiddenparams['appendqnumstring'] = $appendqnumstring;
|
||||
}
|
||||
|
||||
$PAGE->set_url(new moodle_url($CFG->wwwroot.'/question/addquestion.php', $hiddenparams));
|
||||
|
||||
$chooseqtype = get_string('chooseqtypetoadd', 'question');
|
||||
if ($cm !== null) {
|
||||
if (stripos($returnurl, "$CFG->wwwroot/mod/{$cm->modname}/view.php")!== 0) {
|
||||
@ -87,7 +89,7 @@ if ($cm !== null) {
|
||||
$PAGE->set_button($OUTPUT->update_module_button($cm->id, $cm->modname));
|
||||
echo $OUTPUT->header();
|
||||
} else {
|
||||
$PAGE->navbar->add(get_string('editquestions', 'question'),$returnurl);
|
||||
$PAGE->navbar->add(get_string('questionbank', 'question'),$returnurl);
|
||||
$PAGE->navbar->add($chooseqtype);
|
||||
$PAGE->set_title($chooseqtype);
|
||||
echo $OUTPUT->header();
|
||||
|
@ -199,6 +199,7 @@
|
||||
$strupdatemodule = '';
|
||||
}
|
||||
|
||||
$PAGE->set_url($thispageurl->out());
|
||||
$PAGE->navbar->add($streditingcategories, $thispageurl->out());
|
||||
$PAGE->navbar->add(get_string('movingcategory', 'question'));
|
||||
$PAGE->set_title($streditingcategories);
|
||||
|
@ -182,6 +182,7 @@ if ($cmid) {
|
||||
$strupdatemodule = '';
|
||||
}
|
||||
$strmovingquestions = get_string('movingquestions', 'question');
|
||||
$PAGE->set_url($thispageurl->out());
|
||||
$PAGE->navbar->add($strmovingquestions);
|
||||
$PAGE->set_title($strmovingquestions);
|
||||
$PAGE->set_button($strupdatemodule);
|
||||
|
@ -32,6 +32,7 @@
|
||||
}
|
||||
|
||||
/// Header
|
||||
$PAGE->set_url($thispageurl->out());
|
||||
$PAGE->set_title($strexportquestions);
|
||||
if ($cm!==null) {
|
||||
$strupdatemodule = has_capability('moodle/course:manageactivities', $contexts->lowest())
|
||||
|
@ -44,6 +44,8 @@
|
||||
// ensure the files area exists for this course
|
||||
make_upload_directory("$COURSE->id");
|
||||
|
||||
$PAGE->set_url($thispageurl->out());
|
||||
|
||||
$import_form = new question_import_form($thispageurl, array('contexts'=>$contexts->having_one_edit_tab_cap('import'),
|
||||
'defaultcategory'=>$pagevars['cat']));
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user