jenkins-bot has submitted this change and it was merged. Change subject: Do not localize content model name inside of english exception messages ......................................................................
Do not localize content model name inside of english exception messages Bug: T143889 Change-Id: I2d8004123ca6ae94219bd7880beb1c274ce13417 --- M includes/EditPage.php 1 file changed, 2 insertions(+), 4 deletions(-) Approvals: Legoktm: Looks good to me, approved jenkins-bot: Verified diff --git a/includes/EditPage.php b/includes/EditPage.php index 0da7e6e..f954529 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2494,8 +2494,7 @@ } if ( !$this->isSupportedContentModel( $content->getModel() ) ) { - throw new MWException( 'This content model is not supported: ' - . ContentHandler::getLocalizedName( $content->getModel() ) ); + throw new MWException( 'This content model is not supported: ' . $content->getModel() ); } return $content->serialize( $this->contentFormat ); @@ -2526,8 +2525,7 @@ $this->contentModel, $this->contentFormat ); if ( !$this->isSupportedContentModel( $content->getModel() ) ) { - throw new MWException( 'This content model is not supported: ' - . ContentHandler::getLocalizedName( $content->getModel() ) ); + throw new MWException( 'This content model is not supported: ' . $content->getModel() ); } return $content; -- To view, visit https://gerrit.wikimedia.org/r/307053 To unsubscribe, visit https://gerrit.wikimedia.org/r/settings Gerrit-MessageType: merged Gerrit-Change-Id: I2d8004123ca6ae94219bd7880beb1c274ce13417 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Tpt <thoma...@hotmail.fr> Gerrit-Reviewer: Jackmcbarn <jackmcb...@gmail.com> Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com> Gerrit-Reviewer: jenkins-bot <> _______________________________________________ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits