r43785 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r43784‎ | r43785 | r43786 >
Date:23:43, 20 November 2008
Author:demon
Status:reverted
Tags:
Comment:
Get the real canonical name for NS_IMAGE, don't assume it will be Image: forever.
Modified paths:
  • /trunk/phase3/includes/filerepo/ForeignAPIRepo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/ForeignAPIRepo.php
@@ -94,7 +94,7 @@
9595
9696 function getImageInfo( $title, $time = false ) {
9797 return $this->queryImage( array(
98 - 'titles' => 'Image:' . $title->getText(),
 98+ 'titles' => MWNamespace::getCanonicalName( NS_IMAGE ) . ':' . $title->getText(),
9999 'iiprop' => 'timestamp|user|comment|url|size|sha1|metadata|mime' ) );
100100 }
101101

Follow-up revisions

RevisionCommit summaryAuthorDate
r43806Revert r43785 (switching hardcoded Image: to loading the canonical name). Thi...demon09:24, 21 November 2008

Status & tagging log