From 810a1c12676611b80418dbb14565856a4925ef6a Mon Sep 17 00:00:00 2001 From: skeeter Date: Fri, 19 Oct 2001 01:52:39 +0000 Subject: [PATCH] New code to accomodate portalbox hooks.. --- phpgwapi/inc/class.common.inc.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/phpgwapi/inc/class.common.inc.php b/phpgwapi/inc/class.common.inc.php index a8421f29ec..425be2385e 100644 --- a/phpgwapi/inc/class.common.inc.php +++ b/phpgwapi/inc/class.common.inc.php @@ -1003,6 +1003,8 @@ $order[] = $GLOBALS['phpgw_info']['flags']['currentapp']; } + $GLOBALS['order_seq'] = -1; + /* First include the ordered apps hook file */ reset ($order); while (list(,$appname) = each($order)) @@ -1011,6 +1013,7 @@ if (file_exists($f) && ( $GLOBALS['phpgw_info']['user']['apps'][$appname] || (($no_permission_check || $appname == 'preferences') && $appname)) ) { + $GLOBALS['order_seq']++; include($f); } @@ -1030,6 +1033,7 @@ $f = PHPGW_SERVER_ROOT . '/' . $appname . '/inc/hook_' . $location . '.inc.php'; if (file_exists($f)) { + $GLOBALS['order_seq']++; include($f); } } // if @@ -1046,6 +1050,7 @@ $f = PHPGW_SERVER_ROOT . '/' . $appname . '/inc/hook_' . $location . '.inc.php'; if (file_exists($f)) { + $GLOBALS['order_seq']++; include($f); } } // if