From: jmg324 Date: Thu, 10 Jan 2008 09:47:29 +0000 (+0000) Subject: altered require statement for config. X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=fec6dd580b99134a73a7f0687a99709eaca51f2c;p=moodle.git altered require statement for config. Not sure why, but the referential file path was causing cron to fail because config couldn't be found when running from scheduled cron (running in browser was fine! It looks tidier anyway to have both require's done the same way, so now both user $dirroot to locate files required and this works with scheduled cron. --- diff --git a/search/cron.php b/search/cron.php index 15cbb1c1b7..0d115ef72b 100644 --- a/search/cron.php +++ b/search/cron.php @@ -12,7 +12,7 @@ * adds documents created since the last index run */ - require_once('../config.php'); + require_once("$CFG->dirroot/config.php"); require_once("$CFG->dirroot/search/lib.php"); if (!search_check_php5()) {