If there is no $oldtext, don't bother prepending it
authorRob Church <robchurch@users.mediawiki.org>
Mon, 18 Dec 2006 19:32:41 +0000 (19:32 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Mon, 18 Dec 2006 19:32:41 +0000 (19:32 +0000)
includes/Article.php

index 0ebd440..5356c2a 100644 (file)
@@ -1139,7 +1139,7 @@ class Article {
                                $subject = $summary ? "== {$summary} ==\n\n" : '';
                                $text = strlen( trim( $oldtext ) ) > 0
                                                ? "{$oldtext}\n\n{$subject}{$text}"
-                                               : "{$oldtext}{$subject}{$text}";
+                                               : "{$subject}{$text}";
                        } else {
                                # Replacing an existing section; roll out the big guns
                                global $wgParser;