mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-11-22 16:03:47 +01:00
passing the info also to method hooks
This commit is contained in:
parent
3fa9f71fc4
commit
ff9f3ebcbd
@ -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))
|
||||
|
Loading…
Reference in New Issue
Block a user