Apply ^demon's patch. Reason was: fixes mismatched <tbody> issue from when child...
[lhc/web/wiklou.git] / maintenance / fixTimestamps.php
index 784e35c..f679414 100644 (file)
@@ -1,11 +1,13 @@
 <?php
-
 /**
  * This script fixes timestamp corruption caused by one or more webservers 
  * temporarily being set to the wrong time. The time offset must be known and
  * consistent. Start and end times (in 14-character format) restrict the search, 
  * and must bracket the damage. There must be a majority of good timestamps in the 
  * search period.
+ *
+ * @file
+ * @ingroup Maintenance
  */
 
 require_once( 'commandLine.inc' );
@@ -22,7 +24,7 @@ $fname = 'fixTimestamps.php';
 $grace = 60; // maximum normal clock offset
 
 # Find bounding revision IDs
-$dbw =& wfGetDB( DB_MASTER );
+$dbw = wfGetDB( DB_MASTER );
 $revisionTable = $dbw->tableName( 'revision' );
 $res = $dbw->query( "SELECT MIN(rev_id) as minrev, MAX(rev_id) as maxrev FROM $revisionTable " .
        "WHERE rev_timestamp BETWEEN '{$start}' AND '{$end}'", $fname );
@@ -101,4 +103,4 @@ $sql = "UPDATE $revisionTable " .
 $dbw->query( $sql, $fname );
 echo "Done\n";
 
-?>
+