Patch to formatComment() to fix otherwise-unrecognised links with an initial colon...
authorTim Starling <tstarling@users.mediawiki.org>
Wed, 18 Aug 2004 14:39:17 +0000 (14:39 +0000)
committerTim Starling <tstarling@users.mediawiki.org>
Wed, 18 Aug 2004 14:39:17 +0000 (14:39 +0000)
includes/Skin.php

index dc69734..6ea3cb7 100644 (file)
@@ -2543,6 +2543,8 @@ class Skin {
                                        $trail = "";
                                }
                                $linkRegexp = '/\[\[(.*?)\]\]' . preg_quote( $trail, '/' ) . '/';
+                               if ($match[1][0] == ':')
+                                       $match[1] = substr($match[1], 1);
                                $thelink = $this->makeLink( $match[1], $text, "", $trail );
                        }
                        $comment = preg_replace( $linkRegexp, $thelink, $comment, 1 );