mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 00:42:20 +02:00
- 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
This commit is contained in:
+11
-1
@@ -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'],
|
||||
|
||||
Reference in New Issue
Block a user