mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-27 09:49:22 +02:00
Display warning if hook file does not exist
This commit is contained in:
parent
b850e56ff1
commit
2fdd507902
@ -69,9 +69,7 @@ class Hook
|
|||||||
}*/
|
}*/
|
||||||
|
|
||||||
global $db, $config, $template_path, $ots, $content, $twig;
|
global $db, $config, $template_path, $ots, $content, $twig;
|
||||||
if(file_exists(BASE . $this->_file)) {
|
$ret = include BASE . $this->_file;
|
||||||
$ret = require BASE . $this->_file;
|
|
||||||
}
|
|
||||||
|
|
||||||
return !isset($ret) || $ret == 1 || $ret;
|
return !isset($ret) || $ret == 1 || $ret;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user