r14144 MediaWiki - Code Review archive

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

Diff [purge]

Index: branches/REL1_6/phase3/includes/Parser.php
@@ -3847,7 +3847,11 @@
38483848 $html = $pout->getText();
38493849
38503850 $ig->add( new Image( $nt ), $html );
3851 - $this->mOutput->addImage( $nt->getDBkey() );
 3851+
 3852+ # Only add real images (bug #5586)
 3853+ if ( $nt->getNamespace() == NS_IMAGE ) {
 3854+ $this->mOutput->addImage( $nt->getDBkey() );
 3855+ }
38523856 }
38533857 return $ig->toHTML();
38543858 }
Index: branches/REL1_6/phase3/RELEASE-NOTES
@@ -60,6 +60,7 @@
6161 * (bug 5723) Don't count pages linked to from the MediaWiki namespace as "wanted"
6262 * (bug 5789) Treat "loginreqpagetext" as wikitext
6363 * (bug 5796) We require MySQL >=4.0.14
 64+* (bug 5586) <gallery> treated text as links
6465
6566 == MediaWiki 1.6.3 ==
6667

Status & tagging log