X-Git-Url: http://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLTitleTextField.php;h=dd9f793e1f6107d58b8db81fb5b5e1fb12fc2d95;hb=981eca4fb14543de57feb1ba59ecdc0f4297d190;hp=93d09e7f14d1f57f83bbcd078d0799a7fd364c8c;hpb=fd08137ebf8b34cb1a9711c34d6c4d0357aea5b7;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/htmlform/fields/HTMLTitleTextField.php b/includes/htmlform/fields/HTMLTitleTextField.php index 93d09e7f14..dd9f793e1f 100644 --- a/includes/htmlform/fields/HTMLTitleTextField.php +++ b/includes/htmlform/fields/HTMLTitleTextField.php @@ -1,6 +1,5 @@ getContentLanguage()-> - getNsText( $this->mParams['namespace'] ); - $title = Title::newFromTextThrow( $namespaceName . ':' . $value ); + $title = Title::newFromTextThrow( Title::makeName( $this->mParams['namespace'], $value ) ); } } catch ( MalformedTitleException $e ) { - $msg = $this->msg( $e->getErrorMessage() ); - $params = $e->getErrorMessageParameters(); - if ( $params ) { - $msg->params( $params ); - } - return $msg; + return $this->msg( $e->getErrorMessage(), $e->getErrorMessageParameters() ); } $text = $title->getPrefixedText();