X-Git-Url: http://git.harvie.cz/?a=blobdiff_plain;f=cron%2Fsearch_update.php;h=318c823c694ab072c9fa92d688a7452e37b32027;hb=e4a5b5dc5afc8fe03b836182a122798de66eb686;hp=fecaeb328bb430ae848ed51f487f7f374490d895;hpb=a3be90c67dddac260c8267cf61ccd0a6b758cb35;p=mirrors%2FKyberia-bloodline.git diff --git a/cron/search_update.php b/cron/search_update.php index fecaeb3..318c823 100755 --- a/cron/search_update.php +++ b/cron/search_update.php @@ -8,10 +8,9 @@ // Use relative address of config file // Change this, if you move you cron directory. $dir=substr(__FILE__, 0, strrpos(__FILE__, '/')); -require($dir.'/../wwwroot/config/config.inc'); +require_once($dir.'/../wwwroot/config/config.inc'); -require(INCLUDE_DIR.'/database.inc'); -require(INCLUDE_DIR.'/senate.inc'); +require_once(INCLUDE_DIR.'/database.inc'); $db = new CLASS_DATABASE(); $db->query('insert into node_content select node_id,node_content from nodes where ( DATE_SUB(CURDATE(),INTERVAL 2 DAY) < node_created OR DATE_SUB(CURDATE(),INTERVAL 2 DAY) < node_updated) ON DUPLICATE KEY UPDATE node_content.node_content = nodes.node_content;');