Fix behavior of Hooks class.
authordaniel <daniel.kinzler@wikimedia.de>
Fri, 5 Oct 2012 16:28:21 +0000 (18:28 +0200)
committerdaniel <daniel.kinzler@wikimedia.de>
Mon, 8 Oct 2012 11:45:58 +0000 (13:45 +0200)
commit503ce75e27dc003de19aec6f3455bfd22b8afcfb
treed09737444d9354e4c2c7642d7dc6778278b0c231
parent3ae854ef3e92c3521ffc4c42a47d8bf0c0e02294
Fix behavior of Hooks class.

Until now, Hooks::run() would execute hooks registered via $wgHooks, but
Hooks:isRegistered() would not consider them and Hooks::getHandlers() would
not return them. That is inconsistent and misleading. This change aims to
make the methods of the Hooks class behave consistently, and allows them
to be used as a generic way of interacting with hooks.

Change-Id: I39bd5de2bc8ccbe8df729446363960af9d29b0be
includes/Hooks.php
tests/phpunit/includes/HooksTest.php