Browse files

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.
  • Loading branch information...
jmg324 committed Jan 10, 2008
1 parent e93902f commit fec6dd580b99134a73a7f0687a99709eaca51f2c
Showing with 1 addition and 1 deletion.
  1. +1 −1 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");
if (!search_check_php5()) {

0 comments on commit fec6dd5

Please sign in to comment.