Permalink
Browse files

MDL-27515 resource module: change 'require' to 'require_once'

  • Loading branch information...
1 parent 6c56155 commit b2fd028829a5510ed682a87ca51ac24319576e0c Rossiani Wijaya committed Jul 8, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 mod/resource/mod_form.php
@@ -22,7 +22,7 @@ function definition() {
$mform->setType('type', PARAM_ALPHA);
$mform->setDefault('type', $type);
- require($CFG->dirroot.'/mod/resource/type/'.$type.'/resource.class.php');
+ require_once($CFG->dirroot.'/mod/resource/type/'.$type.'/resource.class.php');
$resclass = 'resource_'.$type;
$this->_resinstance = new $resclass();

0 comments on commit b2fd028

Please sign in to comment.