aboutsummaryrefslogtreecommitdiffstats
path: root/include/ws_functions/pwg.users.php
diff options
context:
space:
mode:
authorplegall <plg@piwigo.org>2013-12-16 15:09:49 +0000
committerplegall <plg@piwigo.org>2013-12-16 15:09:49 +0000
commit5c9b9c43f549357b5c09c402f7e49a6006bb62bc (patch)
tree5c7a0c5014209aa00a985a173aec41f09beb8e72 /include/ws_functions/pwg.users.php
parentb3bf2efb0337825838ed1cbc67f69fca43bccc26 (diff)
bug 3012 fixed: invalidate_user_cache() on pwg.users.setInfo, pwg.groups.addUser, pwg.groups.deleteUser
git-svn-id: http://piwigo.org/svn/trunk@25968 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/ws_functions/pwg.users.php')
-rw-r--r--include/ws_functions/pwg.users.php8
1 files changed, 5 insertions, 3 deletions
diff --git a/include/ws_functions/pwg.users.php b/include/ws_functions/pwg.users.php
index c63284d3e..eb8b14bb0 100644
--- a/include/ws_functions/pwg.users.php
+++ b/include/ws_functions/pwg.users.php
@@ -335,9 +335,9 @@ function ws_users_delete($params, &$service)
}
return l10n_dec(
- '%d user deleted', '%d users deleted',
- count($params['user_id'])
- );
+ '%d user deleted', '%d users deleted',
+ count($params['user_id'])
+ );
}
/**
@@ -560,6 +560,8 @@ SELECT
}
}
+ invalidate_user_cache();
+
return $service->invoke('pwg.users.getList', array(
'user_id' => $params['user_id'],
'display' => 'basics,'.implode(',', array_keys($updates_infos)),