diff options
Diffstat (limited to 'MLEB/Translate/Message.php')
-rw-r--r-- | MLEB/Translate/Message.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/MLEB/Translate/Message.php b/MLEB/Translate/Message.php index 32b13b1b..99bf5756 100644 --- a/MLEB/Translate/Message.php +++ b/MLEB/Translate/Message.php @@ -162,8 +162,9 @@ class ThinMessage extends TMessage { return $this->infile(); } - if ( $this->translation === null ) { + if ( $this->translation === null && class_exists( '\Revision' ) ) { // Should only happen with MW < 1.34. Slow if the text table hasn't been joined in! + // @phan-suppress-next-line PhanUndeclaredClassMethod $text = Revision::getRevisionText( $this->row ); if ( $text !== false ) { $this->translation = $text; |