From 281803dd1fb69b923dc88e35c74c29c69bbda167 Mon Sep 17 00:00:00 2001 From: Anders Wegge Jakobsen Date: Sun, 29 May 2005 10:28:39 +0000 Subject: [PATCH] * (bug 2094) Multiple use of a template produced wrong results in some cases --- RELEASE-NOTES | 3 ++- includes/Parser.php | 5 +++-- 2 files changed, 5 insertions(+), 3 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 151908cef3..b110414e6a 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -183,6 +183,7 @@ Various bugfixes, small features, and a few experimental things: * (bug 2067) Fixed crash on empty quoted HTML attribute * (bug 2075) Corrected namespace definitions in Tamil localization * (bug 2079) Removed links to Special:Maintenance from movepagetext message +* (bug 2094) Multiple use of a template produced wrong results in some cases * (bug 2095) Triple-closing-bracket thing partly fixed * (bug 2110) "noarticletext" should not display on Image page for "sharedupload" media * (bug 2150) Fix tab indexes on edit form @@ -190,6 +191,7 @@ Various bugfixes, small features, and a few experimental things: * (bug 2176) Section edit 'show changes' button works correctly now * (bug 2178) Use temp dir from environment in parser tests * (bug 2217) Negative ISO years were incorrectly converted to BC notation +* (bug 2234) allow special chars in database passwords during install * Deprecated the {{msg:template}} syntax for referring to templates, {{msg: is now the wikisyntax representation of wfMsgForContent() * Fix for reading incorrectly re-gzipped HistoryBlob entries @@ -219,7 +221,6 @@ Various bugfixes, small features, and a few experimental things: * Add validate table and val_ip column through the updater. * Simple rate limiter for edits and page moves; set $wgRateLimits (somewhat experimental; currently needs memcached) -* (bug 2234) allow special chars in database passwords during install === Caveats === diff --git a/includes/Parser.php b/includes/Parser.php index ca7340086f..6924670c0f 100644 --- a/includes/Parser.php +++ b/includes/Parser.php @@ -2160,7 +2160,7 @@ class Parser $articleContent = $article->getContentWithoutUsingSoManyDamnGlobals(); if ( $articleContent !== false ) { $found = true; - $text = $linestart . $articleContent; + $text = $articleContent; $replaceHeadings = true; } } @@ -2168,13 +2168,14 @@ class Parser # If the title is valid but undisplayable, make a link to it if ( $this->mOutputType == OT_HTML && !$found ) { - $text = $linestart . '[['.$title->getPrefixedText().']]'; + $text = '[['.$title->getPrefixedText().']]'; $found = true; } # Template cache array insertion if( $found ) { $this->mTemplates[$part1] = $text; + $text = $linestart . $text } } } -- 2.20.1