aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2008-03-01 15:29:29 +0000
committerpatdenice <patdenice@piwigo.org>2008-03-01 15:29:29 +0000
commit7bff25884c0da372fa672507dd80c8fab336ba88 (patch)
tree84381979feea00382a4e5652e813c524ac5f48c3 /include/functions_user.inc.php
parent2ef8c58d3139ec931a75185a32ede7a7663c735f (diff)
Merge from revision 2236.
801: add trigger in register_user function. 805: add 2 triggers in profile.php. 769: correct get_email_address_as_display_text function. git-svn-id: http://piwigo.org/svn/trunk@2237 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r--include/functions_user.inc.php11
1 files changed, 10 insertions, 1 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index e78ffb01a..02cb2c873 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -93,6 +93,15 @@ function register_user($login, $password, $mail_address,
array_push($errors, $mail_error);
}
+ $errors = trigger_event('register_user_check',
+ $errors,
+ array(
+ 'login'=>$login,
+ 'password'=>$password,
+ 'email'=>$mail_address,
+ )
+ );
+
// if no error until here, registration of the user
if (count($errors) == 0)
{
@@ -1227,7 +1236,7 @@ function get_email_address_as_display_text($email_address)
}
else
{
- if (script_basename() == 'admin' and is_adviser())
+ if (defined('IN_ADMIN') and is_adviser())
{
return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
}