mirror of
https://github.com/slawkens/myaac.git
synced 2025-04-26 17:29:21 +02:00
Display warning if file included by hook does not exist
This commit is contained in:
parent
3c77c54c8e
commit
979532d3df
@ -74,9 +74,7 @@ class Hook
|
||||
}*/
|
||||
|
||||
global $db, $config, $template_path, $ots, $content, $twig;
|
||||
if(file_exists(BASE . $this->_file)) {
|
||||
$ret = require BASE . $this->_file;
|
||||
}
|
||||
$ret = include BASE . $this->_file;
|
||||
|
||||
return !isset($ret) || $ret == 1 || $ret;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user