mirror of
https://github.com/moodle/moodle.git
synced 2025-08-10 19:36:41 +02:00
Replaced optional_var with optional_param
This commit is contained in:
parent
3a6b53e80d
commit
aa8139414e
18 changed files with 85 additions and 90 deletions
|
@ -2,12 +2,12 @@
|
|||
require_once('../../config.php');
|
||||
require_once('lib.php');
|
||||
|
||||
require_variable($id); // course module ID
|
||||
require_variable($entry); // Entry ID
|
||||
optional_variable($confirm); // confirmation
|
||||
$id = required_param('id', PARAM_INT); // course module ID
|
||||
$entry = required_param('entry', 0, PARAM_INT); // Entry ID
|
||||
$confirm = optional_param('confirm', 0, PARAM_INT); // confirmation
|
||||
|
||||
$hook = optional_param('hook');
|
||||
$mode = optional_param('mode');
|
||||
$hook = optional_param('hook', '', PARAM_ALPHANUM);
|
||||
$mode = optional_param('mode', '', PARAM_ALPHA);
|
||||
|
||||
global $USER, $CFG;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue