Always use English for internal exceptions

Change-Id: I3d18fef2dfd28bbad9f01b83b018c25886f63265
This commit is contained in:
Bartosz Dziewoński 2022-08-19 22:23:29 +02:00
parent 0e95e45e88
commit c52980dd7f

View file

@ -102,7 +102,7 @@ class HookUtils {
if ( !$status->isOK() ) {
[ 'message' => $msg, 'params' => $params ] = $status->getErrors()[0];
throw new MWException( wfMessage( $msg, ...$params )->text() );
throw new MWException( wfMessage( $msg, ...$params )->inLanguage( 'en' )->useDatabase( false )->text() );
}
$title = TitleValue::newFromPage( $revRecord->getPage() );