Revert "Revert "Web\Hook: register('grapher')

This reverts commit 65564cda65.

The test was wrong, not the code.
This commit is contained in:
Thomas Gelf 2014-09-12 09:02:23 +02:00
parent 3615b96093
commit 0e926ba05e
1 changed files with 1 additions and 1 deletions

View File

@ -123,7 +123,7 @@ class Hook
*/
private static function assertValidHook($instance, $name)
{
$base_class = self::$BASE_NS . ucfirst($name);
$base_class = self::$BASE_NS . ucfirst($name) . 'Hook';
if (strpos($base_class, self::$classSuffix) === false) {
$base_class .= self::$classSuffix;