From d1c3e0120c673891ef0dd72fde80585409280297 Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Fri, 17 Jan 2014 11:42:01 -0500 Subject: [PATCH] Fix LocalRepo::findFiles and 'time' option It's looking in the wrong place for the 'time' option so it never actually queries for the old revisions. Change-Id: Ifcb626fb27f8b602ff37cf33d4c66c4fc2fd3d56 --- includes/filerepo/LocalRepo.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/filerepo/LocalRepo.php b/includes/filerepo/LocalRepo.php index c5346aa1c4..1399c2bad9 100644 --- a/includes/filerepo/LocalRepo.php +++ b/includes/filerepo/LocalRepo.php @@ -315,11 +315,11 @@ class LocalRepo extends FileRepo { // 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 ); -- 2.20.1