From: Aaron Schulz Date: Fri, 6 Dec 2013 21:31:35 +0000 (-0800) Subject: Tweaked FileRepo::findFiles() behavoir to match LocalRepo X-Git-Tag: 1.31.0-rc.0~17675 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/membres/message.php?a=commitdiff_plain;h=1cd3ff7ae817f9474faf6dbb27eedf8edf3bb805;p=lhc%2Fweb%2Fwiklou.git Tweaked FileRepo::findFiles() behavoir to match LocalRepo * This seems more intuitive and deals with an API bug bug: 45930 Change-Id: I5e265bb9c6063306669cc4014eeb17cfda86436b --- diff --git a/includes/filerepo/FileRepo.php b/includes/filerepo/FileRepo.php index f834be5557..f1d34993c8 100644 --- a/includes/filerepo/FileRepo.php +++ b/includes/filerepo/FileRepo.php @@ -493,7 +493,7 @@ class FileRepo { } $file = $this->findFile( $title, $options ); if ( $file ) { - $result[$file->getTitle()->getDBkey()] = + $result[$title->getDBkey()] = ( $flags & self::TIME_ONLY ) ? $file->getTimestamp() : $file; } }