r44240 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r44239‎ | r44240 | r44241 >
Date:18:23, 4 December 2008
Author:demon
Status:ok
Tags:
Comment:
Same as before, hardcoding Image: is safer.
Modified paths:
  • /trunk/phase3/includes/filerepo/FileRepo.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/filerepo/FileRepo.php
@@ -300,7 +300,7 @@
301301 function getDescriptionRenderUrl( $name ) {
302302 if ( isset( $this->scriptDirUrl ) ) {
303303 return $this->scriptDirUrl . '/index.php?title=' .
304 - wfUrlencode( MWNamespace::getCanonicalName( NS_FILE ) . ':' . $name ) .
 304+ wfUrlencode( 'Image:' . $name ) .
305305 '&action=render';
306306 } else {
307307 $descBase = $this->getDescBaseUrl();

Status & tagging log