Add exception for prereferences app

This commit is contained in:
Miles Lott 2001-06-07 09:38:11 +00:00
parent 6121405967
commit 9f21bfbab4

View File

@ -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 '<br>including: ' . $f;
include($f);
}
$completed_hooks[$appname] = True;