dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c362c56
)
Patch to formatComment() to fix otherwise-unrecognised links with an initial colon...
author
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 18 Aug 2004 14:39:17 +0000
(14:39 +0000)
committer
Tim Starling
<tstarling@users.mediawiki.org>
Wed, 18 Aug 2004 14:39:17 +0000
(14:39 +0000)
includes/Skin.php
patch
|
blob
|
history
diff --git
a/includes/Skin.php
b/includes/Skin.php
index
dc69734
..
6ea3cb7
100644
(file)
--- 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 );