Module::registerHook: use class as default key

refs #9685
This commit is contained in:
Thomas Gelf 2015-11-12 18:33:51 +01:00
parent a24bf32c5b
commit 54db2c9afa
1 changed files with 1 additions and 1 deletions

View File

@ -1239,7 +1239,7 @@ class Module
protected function registerHook($name, $class, $key = null)
{
if ($key === null) {
$key = $this->name;
$key = $class;
}
Hook::register($name, $key, $class);