From 82d09932159b4d3ee9481d140673a576361034c3 Mon Sep 17 00:00:00 2001 From: moodler Date: Wed, 10 Mar 2004 07:13:57 +0000 Subject: [PATCH] Include now uses absolute path, not relative. Solved problem on one Sun installation. --- course/mod.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/course/mod.php b/course/mod.php index 9973a26db0..67bcbd129f 100644 --- a/course/mod.php +++ b/course/mod.php @@ -35,7 +35,7 @@ error("You can't modify this course!"); } - $modlib = "../mod/$mod->modulename/lib.php"; + $modlib = "$CFG->dirroot/mod/$mod->modulename/lib.php"; if (file_exists($modlib)) { include_once($modlib); } else { -- 2.39.5