Fix exception language in MovePage
authorGergő Tisza <tgr.huwiki@gmail.com>
Thu, 17 Jan 2019 23:55:35 +0000 (15:55 -0800)
committerGergő Tisza <tgr.huwiki@gmail.com>
Thu, 17 Jan 2019 23:56:07 +0000 (15:56 -0800)
Follows up I8f6c9647ee.

Change-Id: Iff2941bfc9e14f52ddd33f0a3d522c5a0d594c3e

includes/MovePage.php

index 7aa6b05..1919c0c 100644 (file)
@@ -494,7 +494,8 @@ class MovePage {
                        );
 
                        if ( !$status->isGood() ) {
-                               throw new MWException( 'Failed to delete page-move revision: ' . $status->getWikiText() );
+                               throw new MWException( 'Failed to delete page-move revision: '
+                                       . $status->getWikiText( false, false, 'en' ) );
                        }
 
                        $nt->resetArticleID( false );