From ff9f3ebcbd523c4adf16c1ef649ca88b9294ca2c Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Tue, 19 Sep 2006 06:58:25 +0000 Subject: [PATCH] passing the info also to method hooks --- admin/inc/class.boaccounts.inc.php | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/admin/inc/class.boaccounts.inc.php b/admin/inc/class.boaccounts.inc.php index c18f18f2d1..e87f337a12 100755 --- a/admin/inc/class.boaccounts.inc.php +++ b/admin/inc/class.boaccounts.inc.php @@ -148,17 +148,12 @@ 'new_owner' => (int)$_POST['new_owner'], 'location' => 'deleteaccount', ); - foreach($GLOBALS['egw_info']['apps'] as $appname => $data) + // first all other apps, then preferences and admin + foreach(array_merge(array_diff(array_keys($GLOBALS['egw_info']['apps']),array('preferences','admin')),array('preferences','admin')) as $app) { - if($appname != 'admin' && $appname != 'preferences') - { - $GLOBALS['egw']->hooks->single($GLOBALS['hook_values'],$appname); - } + $GLOBALS['egw']->hooks->single($GLOBALS['hook_values'],$app); } - $GLOBALS['egw']->hooks->single('deleteaccount','preferences'); - $GLOBALS['egw']->hooks->single('deleteaccount','admin'); - $basedir = $GLOBALS['egw_info']['server']['files_dir'] . SEP . 'users' . SEP; if (! @rmdir($basedir . $lid))