From 2fdd507902374626b7d6a676546ae8b14876948d Mon Sep 17 00:00:00 2001 From: slawkens Date: Mon, 19 Jun 2023 08:00:11 +0200 Subject: [PATCH] Display warning if hook file does not exist --- system/hooks.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/system/hooks.php b/system/hooks.php index 93ea1bf1..5eeacf92 100644 --- a/system/hooks.php +++ b/system/hooks.php @@ -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; }