Index: trunk/phase3/includes/Parser.php |
— | — | @@ -3937,7 +3937,11 @@ |
3938 | 3938 | $html = $pout->getText(); |
3939 | 3939 | |
3940 | 3940 | $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 | + } |
3942 | 3946 | } |
3943 | 3947 | return $ig->toHTML(); |
3944 | 3948 | } |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -230,6 +230,7 @@ |
231 | 231 | * Added grammar function to Belarusian (be) |
232 | 232 | * (bug 5819) Add 'PersonalUrls' hook |
233 | 233 | * (bug 5862) Update of Belarusian language (be) |
| 234 | +* (bug 5586) <gallery> treated text as links |
234 | 235 | |
235 | 236 | == Compatibility == |
236 | 237 | |