mirror of
https://github.com/moodle/moodle.git
synced 2025-08-05 00:46:50 +02:00
parameter cleaup - round 1
This commit is contained in:
parent
1452f9e11b
commit
1c47adc540
14 changed files with 43 additions and 48 deletions
|
@ -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");
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue