From 043398796e52eb2f5bf882c3a956fbb1c022e311 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Fri, 12 Dec 2008 00:55:58 +0000 Subject: [PATCH] Fix regression from r44015 "Various minor cleanup/spacing" 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 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/Article.php b/includes/Article.php index 6a3ecaec2a..b6ba6a35da 100644 --- 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) ) { -- 2.20.1