Page MenuHomePhabricator

Allow extensions to add log types (new hooks in includes/LogPage.php)
Closed, ResolvedPublic

Description

Author: avarab

Description:
It's currently not possible to add new log types to includes/LogPage.php without
hardcoding them, this means that extensions such as Renameuser (see bug 2772)
can't add a new logtype and have to log to the main log.

The code should be refactored in a way to allow external code to add log types.


Version: unspecified
Severity: enhancement

Details

Reference
bz2774

Related Objects

Event Timeline

bzimport raised the priority of this task from to Medium.Nov 21 2014, 8:39 PM
bzimport set Reference to bz2774.
bzimport added a subscriber: Unknown Object (MLST).

avarab wrote:

I added three new $wgHooks to LogPage which enable extensions to add their own
logtypes, see extensions/Renameuser/SpecialRenameuser.php for an example of this.

Marking this as FIXED.