aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/ucp/info
diff options
context:
space:
mode:
authorIgor Wiedler <igor@wiedler.ch>2010-09-07 22:13:10 +0200
committerIgor Wiedler <igor@wiedler.ch>2010-09-07 22:27:41 +0200
commita27811b1d4d82f34c145978f3dbac3e2b54ed1ca (patch)
treee6e7ffb523d1b893ab94731ee7e89dcf16753f40 /phpBB/includes/ucp/info
parent1b3b79b694918bd30a0bbac2a5f34553aaa15cb5 (diff)
downloadforums-a27811b1d4d82f34c145978f3dbac3e2b54ed1ca.tar
forums-a27811b1d4d82f34c145978f3dbac3e2b54ed1ca.tar.gz
forums-a27811b1d4d82f34c145978f3dbac3e2b54ed1ca.tar.bz2
forums-a27811b1d4d82f34c145978f3dbac3e2b54ed1ca.tar.xz
forums-a27811b1d4d82f34c145978f3dbac3e2b54ed1ca.zip
[ticket/9807] Hide avatar tab in UCP when avatars are disabled
PHPBB3-9807
Diffstat (limited to 'phpBB/includes/ucp/info')
-rw-r--r--phpBB/includes/ucp/info/ucp_profile.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/info/ucp_profile.php b/phpBB/includes/ucp/info/ucp_profile.php
index 03a4c81f46..d19b80f4c0 100644
--- a/phpBB/includes/ucp/info/ucp_profile.php
+++ b/phpBB/includes/ucp/info/ucp_profile.php
@@ -22,7 +22,7 @@ class ucp_profile_info
'modes' => array(
'profile_info' => array('title' => 'UCP_PROFILE_PROFILE_INFO', 'auth' => '', 'cat' => array('UCP_PROFILE')),
'signature' => array('title' => 'UCP_PROFILE_SIGNATURE', 'auth' => '', 'cat' => array('UCP_PROFILE')),
- 'avatar' => array('title' => 'UCP_PROFILE_AVATAR', 'auth' => '', 'cat' => array('UCP_PROFILE')),
+ 'avatar' => array('title' => 'UCP_PROFILE_AVATAR', 'auth' => 'cfg_allow_avatar && (cfg_allow_avatar_local || cfg_allow_avatar_remote || cfg_allow_avatar_upload || cfg_allow_avatar_remote_upload)', 'cat' => array('UCP_PROFILE')),
'reg_details' => array('title' => 'UCP_PROFILE_REG_DETAILS', 'auth' => '', 'cat' => array('UCP_PROFILE')),
),
);