From 38f6b6ae59ec9044977bdc468f66df840d9ea93f Mon Sep 17 00:00:00 2001 From: Chad Horohoe Date: Thu, 20 Nov 2008 23:43:32 +0000 Subject: [PATCH] Get the real canonical name for NS_IMAGE, don't assume it will be Image: forever. --- 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 a6773e11ec..42085a74b7 100644 --- a/includes/filerepo/ForeignAPIRepo.php +++ b/includes/filerepo/ForeignAPIRepo.php @@ -94,7 +94,7 @@ class ForeignAPIRepo extends FileRepo { function getImageInfo( $title, $time = false ) { return $this->queryImage( array( - 'titles' => 'Image:' . $title->getText(), + 'titles' => MWNamespace::getCanonicalName( NS_IMAGE ) . ':' . $title->getText(), 'iiprop' => 'timestamp|user|comment|url|size|sha1|metadata|mime' ) ); } -- 2.20.1