From b62f3428dea55d15f5f867b3b488a00515505fdf Mon Sep 17 00:00:00 2001 From: Brad Jorsch Date: Mon, 4 Aug 2014 10:48:00 -0400 Subject: [PATCH] EditPage::newSectionSummary should return a value in all code paths Followup I72890c06. Change-Id: Id63c3f3d2c180d193c37091dfe5f1c56e3edb45f --- includes/EditPage.php | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 6454cfa0da..ff63fe8c38 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -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; } /** -- 2.20.1