mirror of
https://github.com/moodle/moodle.git
synced 2025-01-19 06:18:28 +01:00
More secure use of parameters, merged from stable
This commit is contained in:
parent
6aac6eef8c
commit
7054372371
@ -19,7 +19,7 @@
|
||||
|
||||
require ("$CFG->dirroot/mod/resource/type/$resource->type/resource.class.php");
|
||||
$resourceclass = "resource_$resource->type";
|
||||
$resourceinstance = new $resourceclass($id);
|
||||
$resourceinstance = new $resourceclass($cm->id);
|
||||
|
||||
$resourceinstance->display();
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user