Use LogPage::validTypes() instead of $wgLogTypes in a few places
authorKunal Mehta <legoktm@member.fsf.org>
Wed, 25 Jul 2018 23:40:47 +0000 (16:40 -0700)
committerKrinkle <krinklemail@gmail.com>
Sat, 28 Jul 2018 19:09:08 +0000 (19:09 +0000)
commitc96accbb60f93a4212d9c664637a92176259666f
tree59a4cf6fb9929541e9515c230ce5ff74543f4695
parentae314346d5dddf07f7dcac956db6160ceae46e8c
Use LogPage::validTypes() instead of $wgLogTypes in a few places

This is preparation for T200385, which will add a hook to modify the
list of known log types, which will bypass the global variable.

Change-Id: I763cf8b71a98d1dba5f9964fc8d919a268c5d8a5
includes/DefaultSettings.php
includes/api/ApiQueryLogEvents.php
includes/specials/SpecialLog.php
maintenance/rebuildrecentchanges.php