Display warning if hook file does not exist

This commit is contained in:
slawkens 2023-06-19 08:00:11 +02:00
parent b850e56ff1
commit 2fdd507902

View File

@ -69,9 +69,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;
}