r110210 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r110209‎ | r110210 | r110211 >
Date:16:38, 28 January 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
Add constants for the array indexes to make the code more readable
Modified paths:
  • /trunk/extensions/Translate/utils/MessageGroupStats.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/utils/MessageGroupStats.php
@@ -19,6 +19,10 @@
2020 /// Name of the database table
2121 const TABLE = 'translate_groupstats';
2222
 23+ const TOTAL = 0;
 24+ const TRANSLATED = 1;
 25+ const FUZZY = 2;
 26+
2327 /// @var float
2428 protected static $timeStart = null;
2529 /// @var float

Status & tagging log