Fix ForeignDBViaLBRepo favicon
authorGergő Tisza <tgr.huwiki@gmail.com>
Mon, 24 Feb 2014 22:10:02 +0000 (22:10 +0000)
committerGergő Tisza <tgr.huwiki@gmail.com>
Mon, 24 Feb 2014 22:10:02 +0000 (22:10 +0000)
Due to the weird inheritance structure of the FileRepo tree,
ForeignDBViaLBRepo inherited the wrong getInfo behavior and
returned the favicon of the local wiki.

Change-Id: I4892247c0e4a2e05c9148efe089f0ff52459bbd0
Mingle: https://wikimedia.mingle.thoughtworks.com/projects/multimedia/cards/253

includes/filerepo/ForeignDBViaLBRepo.php

index 18f8d5d..8153ffb 100644 (file)
@@ -90,4 +90,8 @@ class ForeignDBViaLBRepo extends LocalRepo {
        protected function assertWritableRepo() {
                throw new MWException( get_class( $this ) . ': write operations are not supported.' );
        }
+
+       public function getInfo() {
+               return FileRepo::getInfo();
+       }
 }