diff --git a/api/src/Hooks.php b/api/src/Hooks.php index fd83106d06..06d1de1fc3 100644 --- a/api/src/Hooks.php +++ b/api/src/Hooks.php @@ -166,7 +166,7 @@ class Hooks * @param string $location location-name * @return int the number of found hooks */ - function count($location) + public static function count($location) { if (!isset(self::$locations)) self::read();