Add exception for 'config' in hook_single();

This commit is contained in:
Miles Lott 2001-06-12 17:21:03 +00:00
parent e3c2d12172
commit d9037970ec

View File

@ -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;