MDL-8810: changing require_once to include_once when looking for mod/.../lib.php

This commit is contained in:
scyrma
2008-01-24 02:20:25 +00:00
parent 81243b7be4
commit f461e8ec0e
4 changed files with 5 additions and 5 deletions
+2 -2
View File
@@ -14,7 +14,7 @@
}
if ($module != '') {
require_once("$CFG->dirroot/mod/$module/lib.php");
include_once("$CFG->dirroot/mod/$module/lib.php");
admin_externalpage_setup('modsetting'.$module);
// if the config.html contains a hidden form field giving
// the module name then the form does not have to prefix all
@@ -44,7 +44,7 @@
/// Otherwise print the form.
$module = required_param('module', PARAM_SAFEDIR);
require_once("$CFG->dirroot/mod/$module/lib.php");
include_once("$CFG->dirroot/mod/$module/lib.php");
admin_externalpage_setup('modsetting'.$module);
$strmodulename = get_string("modulename", $module);