From: moodler Date: Wed, 1 Jan 2003 09:29:05 +0000 (+0000) Subject: If prefix isn't defined in config.php then define it as "" to avoid X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b6bae251a1cbe60284b6c7c2499445e96596bc73;p=moodle.git If prefix isn't defined in config.php then define it as "" to avoid problems with upgraders who don't edit config.php --- diff --git a/lib/setup.php b/lib/setup.php index 89f61859b1..16a3dc8df5 100644 --- a/lib/setup.php +++ b/lib/setup.php @@ -23,6 +23,11 @@ die; } + if (!isset($CFG->prefix)) { // Just in case it isn't defined in config.php + $CFG->prefix = ""; + } + + /// Load up standard libraries