search cron.php is included from search block, the config.php was already included in admin/cron.php - MFC

This commit is contained in:
skodak
2008-01-10 10:05:50 +00:00
parent decfd5028c
commit 0e2c2828fa
+4 -1
View File
@@ -12,7 +12,10 @@
* adds documents created since the last index run
*/
require_once("$CFG->dirroot/config.php");
if (!defined('MOODLE_INTERNAL')) {
die('Direct access to this script is forbidden.'); /// It must be included from a Moodle page
}
require_once("$CFG->dirroot/search/lib.php");
if (!search_check_php5()) {