From: Chad Horohoe Date: Thu, 20 Nov 2008 23:43:32 +0000 (+0000) Subject: Get the real canonical name for NS_IMAGE, don't assume it will be Image: forever. X-Git-Tag: 1.31.0-rc.0~44247 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22auteur_infos%22%2C%20%22id_auteur=%24id%22%29%20.%20%22?a=commitdiff_plain;h=38f6b6ae59ec9044977bdc468f66df840d9ea93f;p=lhc%2Fweb%2Fwiklou.git Get the real canonical name for NS_IMAGE, don't assume it will be Image: forever. --- 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' ) ); }