diff options
Diffstat (limited to 'lib')
-rw-r--r-- | lib/exe/indexer.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/exe/indexer.php b/lib/exe/indexer.php index 74f0b3924..a81adfeae 100644 --- a/lib/exe/indexer.php +++ b/lib/exe/indexer.php @@ -44,7 +44,6 @@ function indexer_stop() { // Now start work if(!defined('DOKU_INC')) define('DOKU_INC',realpath(dirname(__FILE__).'/../../').'/'); require_once(DOKU_INC.'inc/init.php'); -require_once(DOKU_INC.'inc/indexer.php'); //close session session_write_close(); @@ -56,7 +55,6 @@ if(!$ID) indexer_stop(); $last = @filemtime(metaFN($ID,'.indexed')); if($last > @filemtime(wikiFN($ID))) indexer_stop(); - // try to aquire a lock $lock = $conf['lockdir'].'/_indexer.lock'; while(!@mkdir($lock,0777)){ @@ -68,6 +66,8 @@ while(!@mkdir($lock,0777)){ } } +require_once(DOKU_INC.'inc/indexer.php'); + // do the work idx_addPage($ID); @@ -79,4 +79,4 @@ indexer_stop(); //Setup VIM: ex: et ts=4 enc=utf-8 : // No trailing PHP closing tag - no output please! -// See Note at http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php
\ No newline at end of file +// See Note at http://www.php.net/manual/en/language.basic-syntax.instruction-separation.php |