From 9f21bfbab44c616a674c2693f7396d8c7ca04d9e Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Thu, 7 Jun 2001 09:38:11 +0000 Subject: [PATCH] Add exception for prereferences app --- phpgwapi/inc/class.common.inc.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index 842164f632..5fde551afc 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -927,8 +927,10 @@ while (list(,$appname) = each($order)) { $f = PHPGW_SERVER_ROOT . '/' . $appname . '/inc/hook_' . $location . '.inc.php'; - if (file_exists($f) && $phpgw_info['user']['apps'][$appname]) + if (file_exists($f) && + ($phpgw_info['user']['apps'][$appname]) || ($location == 'preferences')) { + //echo '
including: ' . $f; include($f); } $completed_hooks[$appname] = True;