Simplify canUpdateTags function in ChangeTags
authorcenarium <cenarium.sysop@gmail.com>
Sat, 13 Jun 2015 16:32:51 +0000 (18:32 +0200)
committercenarium <cenarium.sysop@gmail.com>
Sun, 14 Jun 2015 19:06:20 +0000 (21:06 +0200)
commit1a6f5dbe851a01e409dee0406c64050617d8242b
treeb86fe9494622c4cfb20de944146c77b2d5fa51da
parent901dd8af7e23a2b75b6412aa7df09e0409585857
Simplify canUpdateTags function in ChangeTags

This simplifies the function canUpdateTags by checking that none of the
tags are defined by an extension instead of checking that all of them
are either manually defined or not defined at all.
Doing so avoids a cache call and makes it easy to propose only relevant
tags for addition/removal to users at Special:EditTags.
This also makes the respective checks for adding/removing tags only when
necessary.

Change-Id: Iddee4d4efb109b0fccf1ece400d166147e1700fc
includes/changetags/ChangeTags.php