aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions_user.inc.php
diff options
context:
space:
mode:
authorpatdenice <patdenice@piwigo.org>2010-12-14 13:47:24 +0000
committerpatdenice <patdenice@piwigo.org>2010-12-14 13:47:24 +0000
commit731f8888a45d4b48e94bff05187e0e2ca40d4ef5 (patch)
tree1fc44a3a59beafe636b74127498d0ed62decdc76 /include/functions_user.inc.php
parentbf1aa6fcf1f6d9038a0723e4f0213e416ec5ee62 (diff)
feature 2060: Remove adviser mode.
First commit: only php files. git-svn-id: http://piwigo.org/svn/trunk@8126 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/functions_user.inc.php17
1 files changed, 4 insertions, 13 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php
index 090c2e701..1bd3fe03a 100644
--- a/include/functions_user.inc.php
+++ b/include/functions_user.inc.php
@@ -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;
}
}