parameter cleaup - round 1

This commit is contained in:
skodak 2006-03-06 10:02:59 +00:00
parent 1452f9e11b
commit 1c47adc540
14 changed files with 43 additions and 48 deletions

View file

@ -2,9 +2,9 @@
// enrol.php - allows admin to edit all enrollment variables
// Yes, enrol is correct English spelling.
include("../config.php");
include('../config.php');
$enrol = optional_param('enrol', $CFG->enrol, PARAM_ALPHA);
$enrol = optional_param('enrol', $CFG->enrol, PARAM_SAFEDIR);
require_login();
@ -43,6 +43,7 @@
$modules = get_list_of_plugins("enrol");
$options = array();
foreach ($modules as $module) {
$options[$module] = get_string("enrolname", "enrol_$module");
}