mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-08-07 09:13:02 +02:00
Applying coding style guidelines to r1018 and r1019.
New function get_webmaster_mail_address used in include/page_tail.php and include/functions_mail.inc.php. Nothing else than functions in include/functions*, init_conf_mail() was useless in include/functions_mail.inc.php because $conf_mail is only used in function pwg_mail. bug fixed: files include/functions_mail.inc.php and include/functions_notification.inc.php had been commited in DOS format! Unix file format is the only file format authorized. git-svn-id: http://piwigo.org/svn/trunk@1021 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -953,4 +953,23 @@ function get_sql_search_clause($search_id)
|
||||
|
||||
return $search_clause;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns webmaster mail address depending on $conf['webmaster_id']
|
||||
*
|
||||
* @return string
|
||||
*/
|
||||
function get_webmaster_mail_address()
|
||||
{
|
||||
global $conf;
|
||||
|
||||
$query = '
|
||||
SELECT '.$conf['user_fields']['email'].'
|
||||
FROM '.USERS_TABLE.'
|
||||
WHERE '.$conf['user_fields']['id'].' = '.$conf['webmaster_id'].'
|
||||
;';
|
||||
list($email) = mysql_fetch_array(pwg_query($query));
|
||||
|
||||
return $email;
|
||||
}
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user