mirror of
https://github.com/Piwigo/Piwigo.git
synced 2025-04-29 04:39:56 +03:00
remove is_adviser() and get_email_address_as_display_text()
git-svn-id: http://piwigo.org/svn/trunk@25729 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
79f0a80f33
commit
45afbb48fb
3 changed files with 5 additions and 35 deletions
|
@ -1316,18 +1316,6 @@ function is_webmaster($user_status='')
|
|||
return is_autorize_status(ACCESS_WEBMASTER, $user_status);
|
||||
}
|
||||
|
||||
/**
|
||||
* Adviser status is depreciated from piwigo 2.2
|
||||
* @return false
|
||||
*/
|
||||
function is_adviser()
|
||||
{
|
||||
// TODO for Piwigo 2.4 : trigger a warning. We don't do it on Piwigo 2.3
|
||||
// to avoid changes for plugin contributors
|
||||
// trigger_error('call to obsolete function is_adviser', E_USER_WARNING);
|
||||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns if current user can edit/delete/validate a comment.
|
||||
*
|
||||
|
@ -1371,24 +1359,6 @@ function can_manage_comment($action, $comment_author_id)
|
|||
return false;
|
||||
}
|
||||
|
||||
/**
|
||||
* Return mail address as display text
|
||||
* @return string
|
||||
*/
|
||||
function get_email_address_as_display_text($email_address)
|
||||
{
|
||||
global $conf;
|
||||
|
||||
if (!isset($email_address) or (trim($email_address) == ''))
|
||||
{
|
||||
return '';
|
||||
}
|
||||
else
|
||||
{
|
||||
return $email_address;
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Compute sql WHERE condition with restrict and filter data.
|
||||
* "FandF" means Forbidden and Filters.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue