From 306169df024d9c183a0cc45ddc010a574a28e4d9 Mon Sep 17 00:00:00 2001 From: Tpt Date: Sat, 27 Aug 2016 11:03:18 +0200 Subject: [PATCH] Do not localize content model name inside of english exception messages Bug: T143889 Change-Id: I2d8004123ca6ae94219bd7880beb1c274ce13417 --- includes/EditPage.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 0da7e6e9ef..f954529260 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -2494,8 +2494,7 @@ class EditPage { } 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 @@ class EditPage { $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; -- 2.20.1