aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-06-18 19:51:42 +0000
committerrvelices <rv-github@modusoptimus.com>2014-06-18 19:51:42 +0000
commit3c13387dfd965afe5c3b2d9bd0e31303599d8784 (patch)
treebb516e9903da31323f9876f5540dac3ef4ca4d0f /include/functions_user.inc.php
parentf894f1208c0ccbd1945baf5c1cf05adb61535caf (diff)
since number of accepted args not required for add_event_handler, simplify calls
git-svn-id: http://piwigo.org/svn/trunk@28714 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php12
1 files changed, 6 insertions, 6 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 5ee56f0f2..54bbc1b35 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -250,7 +250,7 @@ SELECT id
if ($notify_user and email_check_format($mail_address))
{
include_once(PHPWG_ROOT_PATH.'include/functions_mail.inc.php');
-
+
$keyargs_content = array(
get_l10n_args('Hello %s,', stripslashes($login)),
get_l10n_args('Thank you for registering at %s!', $conf['gallery_title']),
@@ -262,7 +262,7 @@ SELECT id
get_l10n_args('', ''),
get_l10n_args('If you think you\'ve received this email in error, please contact us at %s', get_webmaster_mail_address()),
);
-
+
pwg_mail(
$mail_address,
array(
@@ -281,7 +281,7 @@ SELECT id
'email'=>$mail_address,
)
);
-
+
return $user_id;
}
else
@@ -1050,7 +1050,7 @@ function pwg_password_verify($password, $hash, $user_id=null)
{
return true;
}
-
+
// Rehash using new hash.
$hash = pwg_password_hash($password);
@@ -1088,7 +1088,7 @@ function try_log_user($username, $password, $remember_me)
return trigger_change('try_log_user', false, $username, $password, $remember_me);
}
-add_event_handler('try_log_user', 'pwg_login', EVENT_HANDLER_PRIORITY_NEUTRAL, 4);
+add_event_handler('try_log_user', 'pwg_login');
/**
* Default method for user login, can be overwritten with 'try_log_user' trigger.
@@ -1447,7 +1447,7 @@ function get_sql_condition_FandF(
return $sql;
}
-/**
+/**
* Returns sql WHERE condition for recent photos/albums for current user.
*
* @param string $db_field