X-Git-Url: https://git.heureux-cyclage.org/?p=lhc%2Fweb%2Fwiklou.git;a=blobdiff_plain;f=includes%2Fhtmlform%2Ffields%2FHTMLTitleTextField.php;h=dd9f793e1f6107d58b8db81fb5b5e1fb12fc2d95;hp=93d09e7f14d1f57f83bbcd078d0799a7fd364c8c;hb=1dee28cb5f1efd6d9e14d6cc1d0c73c3f69269b4;hpb=a0b490bbe7a87b54de49f075c59befa8232b2237 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();