Tweaked FileRepo::findFiles() behavoir to match LocalRepo
authorAaron Schulz <aschulz@wikimedia.org>
Fri, 6 Dec 2013 21:31:35 +0000 (13:31 -0800)
committerBrian Wolff <bawolff+wn@gmail.com>
Wed, 11 Dec 2013 17:46:23 +0000 (10:46 -0700)
* This seems more intuitive and deals with an API bug

bug: 45930
Change-Id: I5e265bb9c6063306669cc4014eeb17cfda86436b

includes/filerepo/FileRepo.php

index f834be5..f1d3499 100644 (file)
@@ -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;
                        }
                }