diff options
author | rvelices <rv-github@modusoptimus.com> | 2007-10-09 01:43:29 +0000 |
---|---|---|
committer | rvelices <rv-github@modusoptimus.com> | 2007-10-09 01:43:29 +0000 |
commit | e9becfa669f9d7e64440992daeaf937388d26686 (patch) | |
tree | d5c8144c4c7ece7d71b2d9281b7c9f3c5cac2772 /include/functions_user.inc.php | |
parent | 98b07a4a7fa1baff52800f70066f311768904430 (diff) |
- PWG_CHARSET, DB_CHARSET and DB_COLLATE... utf-8 ready
git-svn-id: http://piwigo.org/svn/trunk@2127 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r-- | include/functions_user.inc.php | 11 |
1 files changed, 3 insertions, 8 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 54fab06b5..b6c37cc0f 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -32,13 +32,13 @@ // o check if address could be empty // o check if address is not used by a other user // If the mail address doesn't correspond, an error message is returned. -// +// function validate_mail_address($user_id, $mail_address) { global $conf; if (empty($mail_address) and - !($conf['obligatory_user_mail_address'] and + !($conf['obligatory_user_mail_address'] and in_array(script_basename(), array('register', 'profile')))) { return ''; @@ -49,7 +49,7 @@ function validate_mail_address($user_id, $mail_address) { return l10n('reg_err_mail_address'); } - + if (defined("PHPWG_INSTALLED") and !empty($mail_address)) { $query = ' @@ -158,11 +158,6 @@ SELECT id return $errors; } -function setup_style($style) -{ - return new Template(PHPWG_ROOT_PATH.'template/'.$style); -} - function build_user( $user_id, $use_cache ) { global $conf; |