$caption = get_string('blocksediton');
$options['adminedit'] = 'on';
}
- $buttons = $OUTPUT->button(html_form::make_button($PAGE->url->out(false), $options, $caption, 'get'));
+ $buttons = $OUTPUT->button(html_form::make_button($PAGE->url->out(), $options, $caption, 'get'));
}
$visiblepathtosection = array_reverse($settingspage->visiblepath);
$caption = get_string('blocksediton');
$options['adminedit'] = 'on';
}
- $buttons = $OUTPUT->button(html_form::make_button($PAGE->url->out(false), $options, $caption, 'get'));
+ $buttons = $OUTPUT->button(html_form::make_button($PAGE->url->out(), $options, $caption, 'get'));
}
$PAGE->set_title("$SITE->shortname: " . implode(": ",$visiblepathtosection));
* @return string URL for this page without parameters.
*/
function url_get_path() {
- debugging('Call to deprecated method moodle_page::url_get_path. Use $this->url->out(false) instead.');
- return $this->url->out(false);
+ debugging('Call to deprecated method moodle_page::url_get_path. Use $this->url->out() instead.');
+ return $this->url->out();
}
/**
$returnurl_addtoquiz = new moodle_url($pageurl->out(true), array('addonpage' => $page));
// Print a button linking to the choose question type page.
- $newquestionparams = array('returnurl' => $returnurl_addtoquiz->out(false),
+ $newquestionparams = array('returnurl' => $returnurl_addtoquiz->out(),
'cmid' => $quiz->cmid, 'appendqnumstring' => 'addquestion');
create_new_question_button($defaultcategory->id, $newquestionparams, get_string('addaquestion', 'quiz'),
get_string('createquestionandadd', 'quiz'), $hasattempts);
//$thispageurl is used to construct urls for all question edit pages we link to from this page. It contains an array
//of parameters that are passed from page to page.
$thispageurl = new moodle_url();
- $thispageurl->remove_params(); // We are going to explicity add back everything important - this avoids unwanted params from being retained.
+ $thispageurl->remove_all_params(); // We are going to explicity add back everything important - this avoids unwanted params from being retained.
if ($requirecmid){
$cmid =required_param('cmid', PARAM_INT);
$list = $repo->get_listing($req_path, $curr_page);
$dynload = !empty($list['dynload'])?true:false;
if (!empty($list['upload'])) {
- echo '<form action="'.$url->out(false).'" method="post" enctype="multipart/form-data" style="display:inline">';
+ echo '<form action="'.$url->out().'" method="post" enctype="multipart/form-data" style="display:inline">';
echo '<label>'.$list['upload']['label'].': </label>';
echo '<input type="file" name="repo_upload_file" /><br />';
echo '<input type="hidden" name="action" value="upload" /><br />';