r14143 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r14142‎ | r14143 | r14144 >
Date:18:01, 9 May 2006
Author:hashar
Status:old
Tags:
Comment:
Fix #5586: <gallery> treats text as links
Modified paths:
  • /trunk/phase3/RELEASE-NOTES (modified) (history)
  • /trunk/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/Parser.php
@@ -3937,7 +3937,11 @@
39383938 $html = $pout->getText();
39393939
39403940 $ig->add( new Image( $nt ), $html );
3941 - $this->mOutput->addImage( $nt->getDBkey() );
 3941+
 3942+ # Only add real images (bug #5586)
 3943+ if ( $nt->getNamespace() == NS_IMAGE ) {
 3944+ $this->mOutput->addImage( $nt->getDBkey() );
 3945+ }
39423946 }
39433947 return $ig->toHTML();
39443948 }
Index: trunk/phase3/RELEASE-NOTES
@@ -230,6 +230,7 @@
231231 * Added grammar function to Belarusian (be)
232232 * (bug 5819) Add 'PersonalUrls' hook
233233 * (bug 5862) Update of Belarusian language (be)
 234+* (bug 5586) <gallery> treated text as links
234235
235236 == Compatibility ==
236237

Status & tagging log