[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Do not localize content model name inside of english excepti...
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: TptGerrit-Reviewer: Jackmcbarn Gerrit-Reviewer: Legoktm Gerrit-Reviewer: jenkins-bot <> ___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits
[MediaWiki-commits] [Gerrit] mediawiki/core[master]: Do not localize content model name inside of english excepti...
Tpt has uploaded a new change for review. https://gerrit.wikimedia.org/r/307053 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(-) git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core refs/changes/53/307053/1 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: newchange Gerrit-Change-Id: I2d8004123ca6ae94219bd7880beb1c274ce13417 Gerrit-PatchSet: 1 Gerrit-Project: mediawiki/core Gerrit-Branch: master Gerrit-Owner: Tpt___ MediaWiki-commits mailing list MediaWiki-commits@lists.wikimedia.org https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits