Don't include never-applied defined tags in tagUsageStatistics function
authorcenarium <cenarium.sysop@gmail.com>
Tue, 16 Jun 2015 19:47:04 +0000 (21:47 +0200)
committercenarium <cenarium.sysop@gmail.com>
Tue, 16 Jun 2015 21:43:03 +0000 (23:43 +0200)
commit7caa6f8e4a0e0474a52ac3de9d2667cb49c8e38f
tree97db7d2d625f8ae2fa477dfd10674b71b6e3cbab
parentbd745a7869906ac08b207cbdb957e896f4173c46
Don't include never-applied defined tags in tagUsageStatistics function

This removes the call to ChangeTags::listDefinedTags() in the function
tagUsageStatistics of ChangeTags. So only those in the change_tag table,
i.e. with a hitcount greater than zero, are returned.
Instead at SpecialTags, those tags in the list of defined tags, already
retrieved for other purposes, are appended with zero hitcount, when not
already inserted.
This incidentally makes it easier to get a list of tags applied at least
once, as needed for T27909 (where we don't want never applied tags).

Bug: T91535
Change-Id: I410e9a935bd202faac92f430c0b4dae1a48e2d21
includes/changetags/ChangeTags.php
includes/specials/SpecialTags.php