From d9037970ecdd83762923bab77ff2ef23669baeaa Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Tue, 12 Jun 2001 17:21:03 +0000 Subject: [PATCH] Add exception for 'config' in hook_single(); --- phpgwapi/inc/class.common.inc.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 351edbf1ff..eb0691c4c3 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -969,7 +969,8 @@ /* First include the ordered apps hook file */ $f = PHPGW_SERVER_ROOT . SEP . $appname . SEP . 'inc' . SEP . 'hook_' . $location . '.inc.php'; - if (file_exists($f) && $phpgw_info['user']['apps'][$appname]) + if (file_exists($f) && + ( $phpgw_info['user']['apps'][$appname] || ( ($location == 'config') && $appname) ) ) { include($f); return True;