From: Brad Jorsch Date: Fri, 17 Jan 2014 16:42:01 +0000 (-0500) Subject: Fix LocalRepo::findFiles and 'time' option X-Git-Tag: 1.31.0-rc.0~17228 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=d1c3e0120c673891ef0dd72fde80585409280297;p=lhc%2Fweb%2Fwiklou.git 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 --- 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 );