diff options
author | plegall <plg@piwigo.org> | 2005-10-22 09:53:12 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2005-10-22 09:53:12 +0000 |
commit | 11615fcba672808a02920102e74f439a4087f036 (patch) | |
tree | a10371ec47fe9ead9d94a2bf0dbabfbf889a716a /admin | |
parent | 56f29767a83b7f616962db2ffde2ae45f46ae831 (diff) |
- bug 173 fixed: due to phpBB user identifiers management, the method to
find the next user identifier has changer to MAX+1.
- improvement: information message when new user added
- bug fixed: language item "Username" used instead of "login".
git-svn-id: http://piwigo.org/svn/trunk@906 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r-- | admin/user_list.php | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/admin/user_list.php b/admin/user_list.php index 711ef4e40..a81941524 100644 --- a/admin/user_list.php +++ b/admin/user_list.php @@ -188,6 +188,17 @@ $page['filtered_users'] = get_filtered_user_list(); if (isset($_POST['submit_add'])) { $page['errors'] = register_user($_POST['login'], $_POST['password'], ''); + + if (count($page['errors']) == 0) + { + array_push( + $page['infos'], + sprintf( + l10n('user "%s" added'), + $_POST['login'] + ) + ); + } } // +-----------------------------------------------------------------------+ @@ -409,7 +420,6 @@ $template->assign_vars( 'L_GROUP_ADD_USER' => $lang['group_add_user'], 'L_SUBMIT'=>$lang['submit'], 'L_STATUS'=>$lang['user_status'], - 'L_USERNAME' => $lang['login'], 'L_PASSWORD' => $lang['password'], 'L_EMAIL' => $lang['mail_address'], 'L_ORDER_BY' => $lang['order_by'], |