Skip to content

Commit

Permalink
altered require statement for config.
Browse files Browse the repository at this point in the history
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 fec6dd5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion search/cron.php
Expand Up @@ -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()) {
Expand Down

0 comments on commit fec6dd5

Please sign in to comment.