r69018 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69017‎ | r69018 | r69019 >
Date:21:01, 4 July 2010
Author:siebrand
Status:deferred
Tags:
Comment:
Reduce verbosity. Thanks ialex.
Modified paths:
  • /trunk/extensions/Translate/TranslatePage.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/TranslatePage.php
@@ -252,7 +252,7 @@
253253 $selector = new HTMLSelector( 'task', 'task', $this->options['task'] );
254254
255255 // Check if this is a page translation group to return only appropriate tasks.
256 - $isPageTranslation = strpos( $this->group->getId(), 'page|' ) === 0 ? true : false;
 256+ $isPageTranslation = strpos( $this->group->getId(), 'page|' ) === 0;
257257
258258 foreach ( TranslateTasks::getTasks( $isPageTranslation ) as $id ) {
259259 $label = call_user_func( array( 'TranslateTask', 'labelForTask' ), $id );

Status & tagging log