Trivial fix from Rowan Collins to better handle
authorWil Mahan <wmahan@users.mediawiki.org>
Wed, 6 Oct 2004 19:22:42 +0000 (19:22 +0000)
committerWil Mahan <wmahan@users.mediawiki.org>
Wed, 6 Oct 2004 19:22:42 +0000 (19:22 +0000)
malformed images with captions containing links.

includes/Parser.php

index 53aa59a..5977b7b 100644 (file)
@@ -1215,6 +1215,8 @@ class Parser
                                        }
                                        if ( !$found ) {
                                                # we couldn't find the end of this imageLink, so output it raw
+                                               #but don't ignore what might be perfectly normal links in the text we've examined
+                                               $text = $this->replaceInternalLinks($text);
                                                $s .= $prefix . '[[' . $link . '|' . $text;
                                                # note: no $trail, because without an end, there *is* no trail
                                                continue;