From 9f75f77da37532fbb64ab70beb1eb7e437dc5bc4 Mon Sep 17 00:00:00 2001 From: Petr Skoda Date: Thu, 2 Sep 2010 18:37:22 +0000 Subject: [PATCH] MDL-23184 improved docs, do not show deprecated examples --- lib/moodlelib.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/moodlelib.php b/lib/moodlelib.php index 9f0415940aa..d95a15ceda8 100644 --- a/lib/moodlelib.php +++ b/lib/moodlelib.php @@ -530,7 +530,7 @@ function validate_param($param, $type, $allownull=NULL_NOT_ALLOWED, $debuginfo=' * an options field. * * $course->format = clean_param($course->format, PARAM_ALPHA); - * $selectedgrade_item = clean_param($selectedgrade_item, PARAM_CLEAN); + * $selectedgrade_item = clean_param($selectedgrade_item, PARAM_INT); * * * @param mixed $param the variable we are cleaning @@ -554,6 +554,7 @@ function clean_param($param, $type) { return $param; case PARAM_CLEAN: // General HTML cleaning, try to use more specific type if possible + // this is deprecated!, please use more specific type instead if (is_numeric($param)) { return $param; }