Merge "EditPage::newSectionSummary should return a value in all code paths"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 13 Aug 2014 16:41:49 +0000 (16:41 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 13 Aug 2014 16:41:49 +0000 (16:41 +0000)
1  2 
includes/EditPage.php

diff --combined includes/EditPage.php
@@@ -1468,9 -1468,8 +1468,8 @@@ class EditPage 
                        $cleanSummary = $wgParser->stripSectionName( $this->summary );
                        return wfMessage( 'newsectionsummary' )
                                ->rawParams( $cleanSummary )->inContentLanguage()->text();
-               } else {
-                       return $this->summary;
                }
+               return $this->summary;
        }
  
        /**
@@@ -3527,6 -3526,7 +3526,6 @@@ HTM
        /**
         * Shows a bulletin board style toolbar for common editing functions.
         * It can be disabled in the user preferences.
 -       * The necessary JavaScript code can be found in skins/common/edit.js.
         *
         * @return string
         */