From de0ce709d1ac42fbabe7113fe8e7a7bfca229dee Mon Sep 17 00:00:00 2001 From: Rob Church Date: Mon, 18 Dec 2006 19:32:41 +0000 Subject: [PATCH] If there is no $oldtext, don't bother prepending it --- includes/Article.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 0ebd440097..5356c2a8c9 100644 --- a/includes/Article.php +++ b/includes/Article.php @@ -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; -- 2.20.1