parent
a24bf32c5b
commit
54db2c9afa
|
@ -1239,7 +1239,7 @@ class Module
|
||||||
protected function registerHook($name, $class, $key = null)
|
protected function registerHook($name, $class, $key = null)
|
||||||
{
|
{
|
||||||
if ($key === null) {
|
if ($key === null) {
|
||||||
$key = $this->name;
|
$key = $class;
|
||||||
}
|
}
|
||||||
|
|
||||||
Hook::register($name, $key, $class);
|
Hook::register($name, $key, $class);
|
||||||
|
|
Loading…
Reference in New Issue