Revision: 43806 Author: demon Date: 2008-11-21 09:24:57 +0000 (Fri, 21 Nov 2008)
Log Message: ----------- 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. Modified Paths: -------------- trunk/phase3/includes/filerepo/ForeignAPIRepo.php Modified: trunk/phase3/includes/filerepo/ForeignAPIRepo.php =================================================================== --- trunk/phase3/includes/filerepo/ForeignAPIRepo.php 2008-11-21 09:22:48 UTC (rev 43805) +++ trunk/phase3/includes/filerepo/ForeignAPIRepo.php 2008-11-21 09:24:57 UTC (rev 43806) @@ -93,7 +93,7 @@ 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' ) ); } _______________________________________________ MediaWiki-CVS mailing list MediaWiki-CVS@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs