mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-27 17:18:54 +01:00
passing the info also to method hooks
This commit is contained in:
parent
3fa9f71fc4
commit
ff9f3ebcbd
@ -148,16 +148,11 @@
|
|||||||
'new_owner' => (int)$_POST['new_owner'],
|
'new_owner' => (int)$_POST['new_owner'],
|
||||||
'location' => 'deleteaccount',
|
'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'],$app);
|
||||||
{
|
|
||||||
$GLOBALS['egw']->hooks->single($GLOBALS['hook_values'],$appname);
|
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
$GLOBALS['egw']->hooks->single('deleteaccount','preferences');
|
|
||||||
$GLOBALS['egw']->hooks->single('deleteaccount','admin');
|
|
||||||
|
|
||||||
$basedir = $GLOBALS['egw_info']['server']['files_dir'] . SEP . 'users' . SEP;
|
$basedir = $GLOBALS['egw_info']['server']['files_dir'] . SEP . 'users' . SEP;
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user