A few fixes to the new routine.

This commit is contained in:
skeeter 2002-01-06 05:37:17 +00:00
parent 6b8ddd566b
commit 710ec8fbdd
2 changed files with 5 additions and 2 deletions

View File

@ -75,9 +75,9 @@
if(@file_exists($f)) if(@file_exists($f))
{ {
include($f); include($f);
while(list(,$hook) = each($setup_info[$app_name]['hooks'])) while(is_array($setup_info[$app_name]['hooks']) && list(,$hook) = @each($setup_info[$app_name]['hooks']))
{ {
if(!$hooks->found_hooks[$hook][$appname]) if(!@$hooks->found_hooks[$hook][$app_name])
{ {
$this->register_hook( $this->register_hook(
Array( Array(
@ -90,5 +90,7 @@
} }
} }
Header('Location: '.$GLOBALS['phpgw']->link('/admin/index.php')); Header('Location: '.$GLOBALS['phpgw']->link('/admin/index.php'));
$GLOBALS['phpgw']->common->phpgw_exit();
} }
} }

View File

@ -63,6 +63,7 @@ enter the title for your site admin en Enter the title for your site
enter your default FTP server admin en Enter your default FTP server enter your default FTP server admin en Enter your default FTP server
enter your HTTP proxy server admin en Enter your HTTP proxy server enter your HTTP proxy server admin en Enter your HTTP proxy server
enter your HTTP proxy server port admin en Enter your HTTP proxy server port enter your HTTP proxy server port admin en Enter your HTTP proxy server port
find and register all application hooks admin en Find and Register all Application Hooks
force selectbox admin en Force SelectBox force selectbox admin en Force SelectBox
global categories admin en Global Categories global categories admin en Global Categories
group ? admin en group ? group ? admin en group ?