Merge "Http::getProxy() method to get proxy configuration"
[lhc/web/wiklou.git] / includes / exception / BadTitleError.php
index 4710022..3f4c213 100644 (file)
@@ -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 {