mirror of
https://github.com/moodle/moodle.git
synced 2025-08-08 02:16: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
|
@ -5,8 +5,7 @@
|
|||
require_once("lib.php");
|
||||
global $CFG;
|
||||
|
||||
require_variable($id);
|
||||
|
||||
$id = required_param('id', PARAM_INT);
|
||||
$mode = optional_param('mode');
|
||||
|
||||
require_login();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue