r113711 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r113710‎ | r113711 | r113712 >
Date:08:42, 13 March 2012
Author:amire80
Status:ok (Comments)
Tags:i18nreview 
Comment:
Follow up, r113669, corrected the condition for checking whether translatable pages exist.
Modified paths:
  • /trunk/extensions/TranslationNotifications/SpecialNotifyTranslators.php (modified) (history)

Diff [purge]

Index: trunk/extensions/TranslationNotifications/SpecialNotifyTranslators.php
@@ -58,7 +58,7 @@
5959
6060 // Translatable pages dropdown
6161 $translatablePagesIDs = TranslatablePage::getTranslatablePages();
62 - if ( count ( $translatablePagesIDs ) ) {
 62+ if ( !count ( $translatablePagesIDs ) ) {
6363 return 'translationnotifications-error-no-translatable-pages';
6464 }
6565

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r113669Completing the form fields.amire8021:19, 12 March 2012

Comments

#Comment by Nikerabbit (talk | contribs)   14:43, 15 March 2012

Could also remove space after count.

Status & tagging log