aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2008-03-08 12:38:09 +0000
committerrvelices <rv-github@modusoptimus.com>2008-03-08 12:38:09 +0000
commitbf1f7c4aec50107efdc393a7cea2149a1a3854d7 (patch)
tree3bac58dcf5dcf2d7e414d185d1ad6622fddd34f5 /include
parenta048738d8b9b6be6f16316b2a198386f92e1b600 (diff)
- security fix (profile)
- les langues a la hache - fix some copy/paste errors git-svn-id: http://piwigo.org/svn/trunk@2268 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/functions_user.inc.php9
1 files changed, 4 insertions, 5 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 02cb2c873..bec05e907 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -96,7 +96,7 @@ function register_user($login, $password, $mail_address,
$errors = trigger_event('register_user_check',
$errors,
array(
- 'login'=>$login,
+ 'username'=>$login,
'password'=>$password,
'email'=>$mail_address,
)
@@ -159,13 +159,12 @@ SELECT id
if ($with_notification and $conf['email_admin_on_new_user'])
{
include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
- $username = $_POST['login'];
$admin_url = get_absolute_root_url()
- .'admin.php?page=user_list&username='.$username;
+ .'admin.php?page=user_list&username='.$login;
$keyargs_content = array
(
- get_l10n_args('User: %s', $username),
+ get_l10n_args('User: %s', $login),
get_l10n_args('Email: %s', $_POST['mail_address']),
get_l10n_args('', ''),
get_l10n_args('Admin: %s', $admin_url)
@@ -173,7 +172,7 @@ SELECT id
pwg_mail_notification_admins
(
- get_l10n_args('Registration of %s', $username),
+ get_l10n_args('Registration of %s', $login),
$keyargs_content
);
}