Extend the SpecialStatsAddExtra hook for a more distinct display of extra items
authormwjames <jamesin.hongkong.1@gmail.com>
Mon, 5 Nov 2012 10:24:52 +0000 (19:24 +0900)
committerGerrit Code Review <gerrit@wikimedia.org>
Wed, 6 Mar 2013 07:12:07 +0000 (07:12 +0000)
commit90797afe5366458d37046c34f3a2583aade361f5
treef29bbe37535dd02f576f9ea5070e08e8b673178f
parent8a77d9a67de0283c404fd7d654434ff5edf670dc
Extend the SpecialStatsAddExtra hook for a more distinct display of extra items

The current approach leaves not much room for a meaningful
display of varying extra statistical items nor its ability to display
a special page link as item name.

The change proposed allows for varying header titles as well as
item descriptions using the standard language parser. The proposed
change uses is similar approach as in the InfoAction hook. A item
now is specified as [<header-message>][<item-message>] = number

Use === array() check instead of a count() and continue legacy support
for the single array structure used prio 1.21.

Change-Id: I78107c72953878c86d221fb6f83baff5f6c11f09
includes/specials/SpecialStatistics.php