From: Brad Jorsch Date: Mon, 4 Aug 2014 14:48:00 +0000 (-0400) Subject: EditPage::newSectionSummary should return a value in all code paths X-Git-Tag: 1.31.0-rc.0~14459^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22suivi_revisions%22%29%20.%20%22?a=commitdiff_plain;h=b62f3428dea55d15f5f867b3b488a00515505fdf;p=lhc%2Fweb%2Fwiklou.git EditPage::newSectionSummary should return a value in all code paths Followup I72890c06. Change-Id: Id63c3f3d2c180d193c37091dfe5f1c56e3edb45f --- 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; } /**