More secure use of parameters, merged from stable

This commit is contained in:
moodler 2004-11-11 07:45:27 +00:00
parent 6aac6eef8c
commit 7054372371

View File

@ -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();