From 1cd3ff7ae817f9474faf6dbb27eedf8edf3bb805 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Fri, 6 Dec 2013 13:31:35 -0800 Subject: [PATCH] Tweaked FileRepo::findFiles() behavoir to match LocalRepo * This seems more intuitive and deals with an API bug bug: 45930 Change-Id: I5e265bb9c6063306669cc4014eeb17cfda86436b --- includes/filerepo/FileRepo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; } } -- 2.20.1