Skip to content

Commit

Permalink
Merge pull request #244 from alex-mashin/master
Browse files Browse the repository at this point in the history
Fix typo causing a test for MW 1.41 to fail
  • Loading branch information
alex-mashin authored Sep 9, 2024
2 parents 05f1067 + cd709cd commit 4d441fb
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions src/HookRegistry.php
Original file line number Diff line number Diff line change
Expand Up @@ -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 );
}

/**
Expand Down

0 comments on commit 4d441fb

Please sign in to comment.