X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fexception%2FBadTitleError.php;h=3f4c2131f747ae5f0f2b9526639c90f80d6838fb;hp=4710022d9f02bd38ea5c31480814d072b7aab9d0;hb=e3bd13db0c285f312e31bb1b7271af4628cca80c;hpb=f3a846436ceac9f615e0e1637bc922b532bb8810 diff --git a/includes/exception/BadTitleError.php b/includes/exception/BadTitleError.php index 4710022d9f..3f4c2131f7 100644 --- a/includes/exception/BadTitleError.php +++ b/includes/exception/BadTitleError.php @@ -32,17 +32,13 @@ class BadTitleError extends ErrorPageError { * a MalformedTitleException to figure out things from * @param array $params Parameter to wfMessage() */ - public function __construct( $msg = 'badtitletext', $params = array() ) { + public function __construct( $msg = 'badtitletext', $params = [] ) { if ( $msg instanceof MalformedTitleException ) { $errorMessage = $msg->getErrorMessage(); if ( !$errorMessage ) { - parent::__construct( 'badtitle', 'badtitletext', array() ); + parent::__construct( 'badtitle', 'badtitletext', [] ); } else { $errorMessageParams = $msg->getErrorMessageParameters(); - $titleText = $msg->getTitleText(); - if ( $titleText ) { - $errorMessageParams[] = $titleText; - } parent::__construct( 'badtitle', $errorMessage, $errorMessageParams ); } } else {