EditPage::newSectionSummary should return a value in all code paths
authorBrad Jorsch <bjorsch@wikimedia.org>
Mon, 4 Aug 2014 14:48:00 +0000 (10:48 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Mon, 4 Aug 2014 14:48:00 +0000 (10:48 -0400)
Followup I72890c06.

Change-Id: Id63c3f3d2c180d193c37091dfe5f1c56e3edb45f

includes/EditPage.php

index 6454cfa..ff63fe8 100644 (file)
@@ -1468,9 +1468,8 @@ class EditPage {
                        $cleanSummary = $wgParser->stripSectionName( $this->summary );
                        return wfMessage( 'newsectionsummary' )
                                ->rawParams( $cleanSummary )->inContentLanguage()->text();
-               } else {
-                       return $this->summary;
                }
+               return $this->summary;
        }
 
        /**