dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
16cdbfd
)
If there is no $oldtext, don't bother prepending it
author
Rob Church
<robchurch@users.mediawiki.org>
Mon, 18 Dec 2006 19:32:41 +0000
(19:32 +0000)
committer
Rob Church
<robchurch@users.mediawiki.org>
Mon, 18 Dec 2006 19:32:41 +0000
(19:32 +0000)
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
0ebd440
..
5356c2a
100644
(file)
--- 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;