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:
patdenice 2010-12-14 13:47:24 +00:00
parent bf1aa6fcf1
commit 731f8888a4
28 changed files with 123 additions and 164 deletions

View file

@ -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;
}
}