From: Siebrand Mazeland Date: Sat, 6 Jun 2009 17:04:07 +0000 (+0000) Subject: Follow-up to r51543: fix syntax error in Linker.php X-Git-Tag: 1.31.0-rc.0~41473 X-Git-Url: https://git.cyclocoop.org/%7B%7B%20url_for%28%27votes%27%2C%20votes=%27waiting%27%29%20%7D%7D?a=commitdiff_plain;h=cf8c96d06c49acd57c36fc1374adbcf783a00a44;p=lhc%2Fweb%2Fwiklou.git Follow-up to r51543: fix syntax error in Linker.php --- diff --git a/includes/Linker.php b/includes/Linker.php index 1ea9800b01..a22d12cf89 100644 --- a/includes/Linker.php +++ b/includes/Linker.php @@ -1346,10 +1346,9 @@ class Linker { if (isset($match[1][0]) && $match[1][0] == ':') $match[1] = substr($match[1], 1); list( $inside, $trail ) = Linker::splitTrail( $trail ); - $linkTarget = Title::newFromText( $match[1] ); $thelink = $this->link( - linkTarget, - $text . $inside, + Title::newFromText( $match[1] ), + $text . $inside ) . $trail; } $comment = preg_replace( $linkRegexp, StringUtils::escapeRegexReplacement( $thelink ), $comment, 1 );