From bd555bbfaa044fe72d462af6bbc55d0bfef2d15d Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Fri, 21 Nov 2008 09:24:57 +0000 Subject: [PATCH] Revert r43785 (switching hardcoded Image: to loading the canonical name). This causes an interesting regression...trunk cannot use this with an API below r43639 (when Image was renamed to File), as File:Someimage.ext doesn't make sense to these wikis. Keeping it hardcoded might be best, if Image is in fact remaining an alias to File. --- includes/filerepo/ForeignAPIRepo.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/filerepo/ForeignAPIRepo.php b/includes/filerepo/ForeignAPIRepo.php index 982508e44b..08d2d45149 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -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' ) ); } -- 2.20.1