From fec6dd580b99134a73a7f0687a99709eaca51f2c Mon Sep 17 00:00:00 2001 From: jmg324 Date: Thu, 10 Jan 2008 09:47:29 +0000 Subject: [PATCH] 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. --- search/cron.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/search/cron.php b/search/cron.php index 15cbb1c1b730b..0d115ef72b0fb 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()) {