diff --git a/src/HookRegistry.php b/src/HookRegistry.php index 43dedc8..ea984df 100644 --- a/src/HookRegistry.php +++ b/src/HookRegistry.php @@ -75,10 +75,9 @@ public function isRegistered( $name ) { */ public function getHandlers( $name ) { $container = MediaWikiServices::getInstance()->getHookContainer(); - $hook = 'SMW::Property::initProperties'; return method_exists( $container, 'getHandlerCallbacks' ) - ? $container->getHandlerCallbacks( $hook ) - : $container->getHandlers( $hook ); + ? $container->getHandlerCallbacks( $name ) + : $container->getHandlers( $name ); } /**