mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/DiscussionTools
synced 2024-09-23 18:38:18 +00:00
Always use English for internal exceptions
Change-Id: I3d18fef2dfd28bbad9f01b83b018c25886f63265
This commit is contained in:
parent
0e95e45e88
commit
c52980dd7f
|
@ -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() );
|
||||
|
|
Loading…
Reference in a new issue