r76117 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r76116‎ | r76117 | r76118 >
Date:17:56, 5 November 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Missing error checking
Modified paths:
  • /trunk/extensions/Translate/TranslateEditAddons.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslateEditAddons.php
@@ -416,6 +416,7 @@
417417 self::isMessageNamespace( $article->getTitle() ) )
418418 {
419419 list( $key, $code, $group ) = self::getKeyCodeGroup( $article->getTitle() );
 420+ if ( !$group ) return true;
420421 $def = $group->getMessage( $key, 'en' );
421422 $content = TranslateUtils::convertWhiteSpaceToHTML( $content );
422423 $deftext = wfMsgNoTrans( 'translate-edit-show-def' );

Status & tagging log