X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;ds=sidebyside;f=includes%2Fexception%2FBadTitleError.php;h=3f4c2131f747ae5f0f2b9526639c90f80d6838fb;hb=6e9b4f0e9ce4ccd6089c18b205065ef7fa077484;hp=039b9c60cced3d4c83e7cf1211a43f0d3759f64e;hpb=2fd379fa95f223c6b3f3c8eff6de068eca9e1a1a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/exception/BadTitleError.php b/includes/exception/BadTitleError.php index 039b9c60cc..3f4c2131f7 100644 --- a/includes/exception/BadTitleError.php +++ b/includes/exception/BadTitleError.php @@ -32,11 +32,11 @@ 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(); parent::__construct( 'badtitle', $errorMessage, $errorMessageParams );