From: gustav_delius Date: Thu, 6 Apr 2006 12:56:37 +0000 (+0000) Subject: Replace require_variable() by required_param() X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=a488b9325ca67385aedfa9bf43f7185bcae4534e;p=moodle.git Replace require_variable() by required_param() --- diff --git a/blog/edit.php b/blog/edit.php index c0c563052b..329fa27261 100755 --- a/blog/edit.php +++ b/blog/edit.php @@ -107,7 +107,7 @@ if (($post = data_submitted( get_referer() )) && confirm_sesskey()) { } else if ($post->act == 'update') { do_update($post, $PAGE->bloginfo); } else if ($post->act == 'del') { - require_variable($postid); + $postid = required_param('postid', PARAM_INT); do_delete($PAGE->bloginfo, $postid); } } diff --git a/enrol/paypal/return.php b/enrol/paypal/return.php index e6d5ebecf8..f97e265de7 100644 --- a/enrol/paypal/return.php +++ b/enrol/paypal/return.php @@ -3,7 +3,7 @@ require("../../config.php"); require_once("$CFG->dirroot/enrol/paypal/enrol.php"); - require_variable($id); + $id = required_param('id', PARAM_INT); if (!$course = get_record("course", "id", $id)) { redirect($CFG->wwwroot);