mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-27 19:59:56 +03:00
feature 2060: Remove adviser mode.
First commit: only php files. git-svn-id: http://piwigo.org/svn/trunk@8126 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
bf1aa6fcf1
commit
731f8888a4
28 changed files with 123 additions and 164 deletions
|
@ -1319,14 +1319,12 @@ function check_status($access_type, $user_status = '')
|
|||
}
|
||||
|
||||
/*
|
||||
* Return if current user is an adviser
|
||||
* @return bool
|
||||
* Adviser status is depreciated from piwigo 2.2
|
||||
* @return false
|
||||
*/
|
||||
function is_adviser()
|
||||
{
|
||||
global $user;
|
||||
|
||||
return ($user['adviser'] == 'true');
|
||||
return false;
|
||||
}
|
||||
|
||||
/*
|
||||
|
@ -1384,14 +1382,7 @@ function get_email_address_as_display_text($email_address)
|
|||
}
|
||||
else
|
||||
{
|
||||
if (defined('IN_ADMIN') and is_adviser())
|
||||
{
|
||||
return 'adviser.mode@'.$_SERVER['SERVER_NAME'];
|
||||
}
|
||||
else
|
||||
{
|
||||
return $email_address;
|
||||
}
|
||||
return $email_address;
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue