mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-04 17:02:17 +02:00
- PWG_CHARSET, DB_CHARSET and DB_COLLATE... utf-8 ready
git-svn-id: http://piwigo.org/svn/trunk@2127 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user