From 3c930eb90ab429ef9a073886617eed29c5872f6e Mon Sep 17 00:00:00 2001 From: Daniel Kraus Date: Fri, 29 Aug 2014 07:57:30 +0200 Subject: [PATCH] Do not touch piped links in template parameters. --- LinkTitles.body.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/LinkTitles.body.php b/LinkTitles.body.php index f41c73c..c130fac 100755 --- a/LinkTitles.body.php +++ b/LinkTitles.body.php @@ -117,9 +117,9 @@ if ( $wgLinkTitlesSkipTemplates ) { - $templatesDelimiter = '{{.+?}}|'; + $templatesDelimiter = '{{[^}]+}}|'; } else { - $templatesDelimiter = '{{[^|]+?}}|{{.+\||'; + $templatesDelimiter = '{{[^|}]+}}|{{[^|]+\||'; }; LinkTitles::$currentTitle = $title;