* (bug 2094) Multiple use of a template produced wrong results in some cases
authorAnders Wegge Jakobsen <wegge@users.mediawiki.org>
Sun, 29 May 2005 10:28:39 +0000 (10:28 +0000)
committerAnders Wegge Jakobsen <wegge@users.mediawiki.org>
Sun, 29 May 2005 10:28:39 +0000 (10:28 +0000)
RELEASE-NOTES
includes/Parser.php

index 151908c..b110414 100644 (file)
@@ -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 ===
index ca73400..6924670 100644 (file)
@@ -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
                                }
                        }
                }