[FileBackend] Make sure multiwrite sub-backends use the proxy backend wiki ID.
[lhc/web/wiklou.git] / includes / filerepo / LocalRepo.php
index 2beea43..dd0c947 100644 (file)
@@ -234,7 +234,9 @@ class LocalRepo extends FileRepo {
                $res = $dbr->select(
                        'image',
                        LocalFile::selectFields(),
-                       array( 'img_sha1' => $hash )
+                       array( 'img_sha1' => $hash ),
+                       __METHOD__,
+                       array( 'ORDER BY' => 'img_name' )
                );
                
                $result = array();