mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-05-10 02:16:58 +03:00
Resolved Issue ID 0000456, 0000457, 0000459, 0000465:
o Fix bugs adviser mode git-svn-id: http://piwigo.org/svn/trunk@1458 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
cfcb489cfa
commit
8a7fff22b0
9 changed files with 42 additions and 14 deletions
|
@ -647,4 +647,23 @@ function is_adviser()
|
|||
|
||||
return ($user['adviser'] == 'true');
|
||||
}
|
||||
|
||||
/*
|
||||
* Return mail address as display text
|
||||
* @return string
|
||||
*/
|
||||
function get_email_address_as_display_text($email_address)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (is_adviser())
|
||||
{
|
||||
return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
|
||||
}
|
||||
else
|
||||
{
|
||||
return $email_address;
|
||||
}
|
||||
}
|
||||
|
||||
?>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue