<?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' );
$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 );
$dbw->query( $sql, $fname );
echo "Done\n";
-?>
+