From: Tim Starling Date: Wed, 18 Aug 2004 14:39:17 +0000 (+0000) Subject: Patch to formatComment() to fix otherwise-unrecognised links with an initial colon... X-Git-Tag: 1.5.0alpha1~2299 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/?a=commitdiff_plain;h=dd943ff69c3bf4ab5215437641ba282a7f5e4ac4;p=lhc%2Fweb%2Fwiklou.git Patch to formatComment() to fix otherwise-unrecognised links with an initial colon, written by Kate- --- diff --git a/includes/Skin.php b/includes/Skin.php index dc697349a3..6ea3cb7d01 100644 --- a/includes/Skin.php +++ b/includes/Skin.php @@ -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 );