aboutsummaryrefslogtreecommitdiffstats
path: root/includes/Rest/Handler/EditHandler.php
diff options
context:
space:
mode:
Diffstat (limited to 'includes/Rest/Handler/EditHandler.php')
-rw-r--r--includes/Rest/Handler/EditHandler.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/includes/Rest/Handler/EditHandler.php b/includes/Rest/Handler/EditHandler.php
index 6f73f12ca8f7..933d0c9a8acb 100644
--- a/includes/Rest/Handler/EditHandler.php
+++ b/includes/Rest/Handler/EditHandler.php
@@ -115,27 +115,27 @@ abstract class EditHandler extends ActionModuleBasedHandler {
$code = $msg->getApiCode();
if ( $code === 'protectedpage' ) {
- throw new LocalizedHttpException( $this->makeMessageValue( $msg ), 403 );
+ throw new LocalizedHttpException( MessageValue::newFromSpecifier( $msg ), 403 );
}
if ( $code === 'badtoken' ) {
- throw new LocalizedHttpException( $this->makeMessageValue( $msg ), 403 );
+ throw new LocalizedHttpException( MessageValue::newFromSpecifier( $msg ), 403 );
}
if ( $code === 'missingtitle' ) {
- throw new LocalizedHttpException( $this->makeMessageValue( $msg ), 404 );
+ throw new LocalizedHttpException( MessageValue::newFromSpecifier( $msg ), 404 );
}
if ( $code === 'articleexists' ) {
- throw new LocalizedHttpException( $this->makeMessageValue( $msg ), 409 );
+ throw new LocalizedHttpException( MessageValue::newFromSpecifier( $msg ), 409 );
}
if ( $code === 'editconflict' ) {
- throw new LocalizedHttpException( $this->makeMessageValue( $msg ), 409 );
+ throw new LocalizedHttpException( MessageValue::newFromSpecifier( $msg ), 409 );
}
if ( $code === 'ratelimited' ) {
- throw new LocalizedHttpException( $this->makeMessageValue( $msg ), 429 );
+ throw new LocalizedHttpException( MessageValue::newFromSpecifier( $msg ), 429 );
}
// Fall through to generic handling of the error (status 400).