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:
2009abc
)
Fix regression from r44015 "Various minor cleanup/spacing"
author
Brion Vibber
<brion@users.mediawiki.org>
Fri, 12 Dec 2008 00:55:58 +0000
(
00:55
+0000)
committer
Brion Vibber
<brion@users.mediawiki.org>
Fri, 12 Dec 2008 00:55:58 +0000
(
00:55
+0000)
Damaged some section editing, or at least display of undo, by causing null section parameters in section replacement to be treated as section 0.
includes/Article.php
patch
|
blob
|
history
diff --git
a/includes/Article.php
b/includes/Article.php
index
6a3ecae
..
b6ba6a3
100644
(file)
--- a/
includes/Article.php
+++ b/
includes/Article.php
@@
-1269,7
+1269,7
@@
class Article {
*/
public function replaceSection( $section, $text, $summary = '', $edittime = NULL ) {
wfProfileIn( __METHOD__ );
- if( $section ==
=
'' ) {
+ if( $section == '' ) {
// Whole-page edit; let the whole text through
} else {
if( is_null($edittime) ) {