It's looking in the wrong place for the 'time' option so it never
actually queries for the old revisions.
Change-Id: Ifcb626fb27f8b602ff37cf33d4c66c4fc2fd3d56
// Query old image table
$oiConds = array(); // WHERE clause array for each file
foreach ( $searchSet as $dbKey => $search ) {
- if ( isset( $search['params']['time'] ) ) {
+ if ( isset( $search['time'] ) ) {
$oiConds[] = $dbr->makeList(
array(
'oi_name' => $this->getNameFromTitle( File::normalizeTitle( $dbKey ) ),
- 'oi_timestamp' => $dbr->timestamp( $search['params']['time'] )
+ 'oi_timestamp' => $dbr->timestamp( $search['time'] )
),
LIST_AND
);