Fix regression from r44015 "Various minor cleanup/spacing"
authorBrion Vibber <brion@users.mediawiki.org>
Fri, 12 Dec 2008 00:55:58 +0000 (00:55 +0000)
committerBrion 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

index 6a3ecae..b6ba6a3 100644 (file)
@@ -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) ) {