* Extra newline for pretty output
[lhc/web/wiklou.git] / maintenance / updateSearchIndex.php
index 75b789e..c4bc483 100644 (file)
@@ -1,14 +1,19 @@
 <?php
-
-# Script for periodic off-peak updating of the search index
-
-# Usage: php updateSearchIndex.php [-s START] [-e END] [-p POSFILE] [-l LOCKTIME] [-q]
-# Where START is the starting timestamp
-# END is the ending timestamp
-# POSFILE is a file to load timestamps from and save them to, searchUpdate.pos by default
-# LOCKTIME is how long the searchindex and cur tables will be locked for
-# -q means quiet
-
+/**
+ * Script for periodic off-peak updating of the search index
+ *
+ * Usage: php updateSearchIndex.php [-s START] [-e END] [-p POSFILE] [-l LOCKTIME] [-q]
+ * Where START is the starting timestamp
+ * END is the ending timestamp
+ * POSFILE is a file to load timestamps from and save them to, searchUpdate.pos by default
+ * LOCKTIME is how long the searchindex and cur tables will be locked for
+ * -q means quiet
+ *
+ * @package MediaWiki
+ * @subpackage Maintenance
+ */
+
+/** */
 $optionsWithArgs = array( 's', 'e', 'p' );
 
 require_once( 'commandLine.inc' );
@@ -31,7 +36,7 @@ if ( isset( $options['s'] ) ) {
 } else {
        $start = @file_get_contents( $posFile );
        if ( !$start ) {
-               $start = wfUnix2Timestamp( time() - 86400 );
+               $start = wfTimestamp( TS_MW, time() - 86400 );
        } 
 }