Index: trunk/extensions/Translate/TranslateEditAddons.php |
— | — | @@ -412,7 +412,7 @@ |
413 | 413 | global $wgRequest, $wgTitle; |
414 | 414 | if ( |
415 | 415 | $wgRequest->getVal( 'action' ) !== 'edit' && |
416 | | - $article->getTitle()->equals( $wgTitle ) && |
| 416 | + $wgTitle instanceof Title && $article->getTitle()->equals( $wgTitle ) && |
417 | 417 | self::isMessageNamespace( $article->getTitle() ) ) |
418 | 418 | { |
419 | 419 | list( $key, $code, $group ) = self::getKeyCodeGroup( $article->getTitle() ); |