Revert r43785 (switching hardcoded Image: to loading the canonical name). This causes...
authorChad Horohoe <demon@users.mediawiki.org>
Fri, 21 Nov 2008 09:24:57 +0000 (09:24 +0000)
committerChad Horohoe <demon@users.mediawiki.org>
Fri, 21 Nov 2008 09:24:57 +0000 (09:24 +0000)
includes/filerepo/ForeignAPIRepo.php

index 982508e..08d2d45 100644 (file)
@@ -93,7 +93,7 @@ class ForeignAPIRepo extends FileRepo {
        
        function getImageInfo( $title, $time = false ) {
                return $this->queryImage( array(
-                       'titles' => MWNamespace::getCanonicalName( NS_IMAGE ) . ':' . $title->getText(),
+                       'titles' => 'Image:' . $title->getText(),
                        'iiprop' => 'timestamp|user|comment|url|size|sha1|metadata|mime',
                        'prop'   => 'imageinfo' ) );
        }