From: Tpt Date: Sat, 27 Aug 2016 09:03:18 +0000 (+0200) Subject: Do not localize content model name inside of english exception messages X-Git-Tag: 1.31.0-rc.0~5866 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_aide%28?a=commitdiff_plain;h=306169df024d9c183a0cc45ddc010a574a28e4d9;p=lhc%2Fweb%2Fwiklou.git Do not localize content model name inside of english exception messages Bug: T143889 Change-Id: I2d8004123ca6ae94219bd7880beb1c274ce13417 --- 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;