1
0
mirror of https://github.com/moodle/moodle.git synced 2025-04-24 09:55:33 +02:00

MDL-21142 minor cleanup in out() default params

This commit is contained in:
Petr Skoda 2009-12-16 21:33:01 +00:00
parent 2b3fcef98d
commit 47ce714bc0
6 changed files with 7 additions and 7 deletions

@ -97,7 +97,7 @@ if (empty($SITE->fullname)) {
$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);

@ -5263,7 +5263,7 @@ function admin_externalpage_print_header($focus='') {
$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));

@ -1378,8 +1378,8 @@ class moodle_page {
* @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();
}
/**

@ -654,7 +654,7 @@ function quiz_print_pagecontrols($quiz, $pageurl, $page, $hasattempts) {
$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);

@ -1535,7 +1535,7 @@ function question_edit_setup($edittab, $requirecmid = false, $requirecourseid =
//$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);

@ -170,7 +170,7 @@ case 'sign':
$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 />';