Skip to content

Commit

Permalink
This was sending PHP warnings; short clean-up for PHP 8.
Browse files Browse the repository at this point in the history
  • Loading branch information
scottjpearson committed Jun 23, 2023
1 parent 20aa5b2 commit e5264db
Showing 1 changed file with 9 additions and 3 deletions.
12 changes: 9 additions & 3 deletions hooks_common.php
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,15 @@
**/

// Set the base hook folder to be one level higher than this file
define('HOOK_PATH_ROOT', dirname(__DIR__).DS);
define('HOOK_PATH_FRAMEWORK', dirname(__FILE__).DS);
define('HOOK_PATH_SERVER', HOOK_PATH_ROOT . "server" . DS);
if (!defined("HOOK_PATH_ROOT")) {
define('HOOK_PATH_ROOT', dirname(__DIR__).DS);
}
if (!defined("HOOK_PATH_FRAMEWORK")) {
define('HOOK_PATH_FRAMEWORK', dirname(__FILE__) . DS);
}
if (!defined("HOOK_PATH_SERVER")) {
define('HOOK_PATH_SERVER', HOOK_PATH_ROOT . "server" . DS);
}

// In order to access these configuration parameters inside the hook function, they must be global
global $hook_debug_default, $hook_debug_projects; //global $hook_functions, $hook_fields;
Expand Down

0 comments on commit e5264db

Please sign in to comment.