r76164 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76163‎ | r76164 | r76165 >
Date:23:27, 5 November 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Fix warnings when wgTitle is not available
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -412,7 +412,7 @@
413413 global $wgRequest, $wgTitle;
414414 if (
415415 $wgRequest->getVal( 'action' ) !== 'edit' &&
416 - $article->getTitle()->equals( $wgTitle ) &&
 416+ $wgTitle instanceof Title && $article->getTitle()->equals( $wgTitle ) &&
417417 self::isMessageNamespace( $article->getTitle() ) )
418418 {
419419 list( $key, $code, $group ) = self::getKeyCodeGroup( $article->getTitle() );

Status & tagging log