MDL-8810: changing require_once to include_once when looking for mod/.../lib.php
This commit is contained in:
+2
-2
@@ -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);
|
||||
|
||||
@@ -54,7 +54,7 @@ if ($modid == '0') { // special
|
||||
}
|
||||
else {
|
||||
$modname = get_field("modules","name","id",$modid);
|
||||
require_once('mod/'.$modname.'/lib.php');
|
||||
include_once('mod/'.$modname.'/lib.php');
|
||||
}
|
||||
$function = $modname.'_process_email';
|
||||
|
||||
|
||||
+1
-1
@@ -984,7 +984,7 @@ function print_overview($courses) {
|
||||
if ($modules = get_records('modules')) {
|
||||
foreach ($modules as $mod) {
|
||||
if (file_exists(dirname(dirname(__FILE__)).'/mod/'.$mod->name.'/lib.php')) {
|
||||
require_once(dirname(dirname(__FILE__)).'/mod/'.$mod->name.'/lib.php');
|
||||
include_once(dirname(dirname(__FILE__)).'/mod/'.$mod->name.'/lib.php');
|
||||
$fname = $mod->name.'_print_overview';
|
||||
if (function_exists($fname)) {
|
||||
$fname($courses,$htmlarray);
|
||||
|
||||
@@ -150,7 +150,7 @@
|
||||
$module = get_record('modules','id',$moduleid);
|
||||
$modulename = get_string('modulename',$module->name);
|
||||
|
||||
require_once($CFG->dirroot.'/mod/'.$module->name.'/lib.php');
|
||||
include_once($CFG->dirroot.'/mod/'.$module->name.'/lib.php');
|
||||
|
||||
$viewfun = $module->name.'_get_view_actions';
|
||||
$postfun = $module->name.'_get_post_actions';
|
||||
|
||||
Reference in New Issue
Block a user