Too much restrictive optional_param was producing

some undesired efects with formats. Bug 4858.
(http://moodle.org/bugs/bug.php?op=show&bugid=4858)

Merged from MOODLE_15_STABLE
This commit is contained in:
stronk7
2006-04-30 10:07:36 +00:00
parent 60b5242a53
commit f84b602b44
+1 -1
View File
@@ -5,7 +5,7 @@
$concept = optional_param('concept', '', PARAM_CLEAN);
$courseid = optional_param('courseid', 0, PARAM_INT);
$eid = optional_param('eid', 0, PARAM_INT); // glossary entry id
$displayformat = optional_param('displayformat',-1, PARAM_INT);
$displayformat = optional_param('displayformat',-1, PARAM_SAFEDIR);
if ($CFG->forcelogin) {
require_login();