Index: branches/REL1_6/phase3/includes/Parser.php |
— | — | @@ -3847,7 +3847,11 @@ |
3848 | 3848 | $html = $pout->getText(); |
3849 | 3849 | |
3850 | 3850 | $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 | + } |
3852 | 3856 | } |
3853 | 3857 | return $ig->toHTML(); |
3854 | 3858 | } |
Index: branches/REL1_6/phase3/RELEASE-NOTES |
— | — | @@ -60,6 +60,7 @@ |
61 | 61 | * (bug 5723) Don't count pages linked to from the MediaWiki namespace as "wanted" |
62 | 62 | * (bug 5789) Treat "loginreqpagetext" as wikitext |
63 | 63 | * (bug 5796) We require MySQL >=4.0.14 |
| 64 | +* (bug 5586) <gallery> treated text as links |
64 | 65 | |
65 | 66 | == MediaWiki 1.6.3 == |
66 | 67 | |