http://www.mediawiki.org/wiki/Special:Code/MediaWiki/69018
Revision: 69018
Author: siebrand
Date: 2010-07-04 21:01:41 +0000 (Sun, 04 Jul 2010)
Log Message:
-----------
Reduce verbosity. Thanks ialex.
Modified Paths:
--------------
trunk/extensions/Translate/TranslatePage.php
Modified: trunk/extensions/Translate/TranslatePage.php
===================================================================
--- trunk/extensions/Translate/TranslatePage.php 2010-07-04 20:52:02 UTC
(rev 69017)
+++ trunk/extensions/Translate/TranslatePage.php 2010-07-04 21:01:41 UTC
(rev 69018)
@@ -252,7 +252,7 @@
$selector = new HTMLSelector( 'task', 'task',
$this->options['task'] );
// Check if this is a page translation group to return only
appropriate tasks.
- $isPageTranslation = strpos( $this->group->getId(), 'page|' )
=== 0 ? true : false;
+ $isPageTranslation = strpos( $this->group->getId(), 'page|' )
=== 0;
foreach ( TranslateTasks::getTasks( $isPageTranslation ) as $id
) {
$label = call_user_func( array( 'TranslateTask',
'labelForTask' ), $id );
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs