From: Rob Church Date: Mon, 18 Dec 2006 19:32:41 +0000 (+0000) Subject: If there is no $oldtext, don't bother prepending it X-Git-Tag: 1.31.0-rc.0~54847 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=de0ce709d1ac42fbabe7113fe8e7a7bfca229dee;p=lhc%2Fweb%2Fwiklou.git If there is no $oldtext, don't bother prepending it --- 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;