From: Brion Vibber Date: Fri, 12 Dec 2008 00:55:58 +0000 (+0000) Subject: Fix regression from r44015 "Various minor cleanup/spacing" X-Git-Tag: 1.31.0-rc.0~44022 X-Git-Url: http://git.cyclocoop.org//%27http:/jquery.khurshid.com/ifixpng.php/%27?a=commitdiff_plain;h=043398796e52eb2f5bf882c3a956fbb1c022e311;p=lhc%2Fweb%2Fwiklou.git 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. --- 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) ) {