Merge "Require $key in msg() functions"
authorjenkins-bot <jenkins-bot@gerrit.wikimedia.org>
Wed, 14 Jun 2017 18:07:08 +0000 (18:07 +0000)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 14 Jun 2017 18:07:08 +0000 (18:07 +0000)
1  2 
includes/specialpage/SpecialPage.php

@@@ -33,7 -33,7 +33,7 @@@ use MediaWiki\MediaWikiServices
   *
   * @ingroup SpecialPage
   */
- class SpecialPage {
+ class SpecialPage implements MessageLocalizer {
        // The canonical name of this special page
        // Also used for the default <h1> heading, @see getDescription()
        protected $mName;
         * @return Message
         * @see wfMessage
         */
-       public function msg( /* $args */ ) {
+       public function msg( $key /* $args */ ) {
                $message = call_user_func_array(
                        [ $this->getContext(), 'msg' ],
                        func_get_args()
         * @since 1.25
         */
        public function addHelpLink( $to, $overrideBaseUrl = false ) {
 +              if ( $this->including() ) {
 +                      return;
 +              }
 +
                global $wgContLang;
                $msg = $this->msg( $wgContLang->lc( $this->getName() ) . '-helppage' );