diff options
author | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-04 20:51:51 +0000 |
---|---|---|
committer | Graham Eames <grahamje@users.sourceforge.net> | 2006-10-04 20:51:51 +0000 |
commit | dcdd47cb757d1a359c663d6f0c297f9336b58ffc (patch) | |
tree | 1a825f439fec119f275558cc2674faf528dc671c /phpBB/includes/ucp/ucp_prefs.php | |
parent | 50a0c827ce37fa682d2a2490d8c5a8882274a503 (diff) | |
download | forums-dcdd47cb757d1a359c663d6f0c297f9336b58ffc.tar forums-dcdd47cb757d1a359c663d6f0c297f9336b58ffc.tar.gz forums-dcdd47cb757d1a359c663d6f0c297f9336b58ffc.tar.bz2 forums-dcdd47cb757d1a359c663d6f0c297f9336b58ffc.tar.xz forums-dcdd47cb757d1a359c663d6f0c297f9336b58ffc.zip |
Do not show styles select if overriding style
git-svn-id: file:///svn/phpbb/trunk@6441 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/ucp/ucp_prefs.php')
-rw-r--r-- | phpBB/includes/ucp/ucp_prefs.php | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/phpBB/includes/ucp/ucp_prefs.php b/phpBB/includes/ucp/ucp_prefs.php index 60ed5dc360..5dce0b80c2 100644 --- a/phpBB/includes/ucp/ucp_prefs.php +++ b/phpBB/includes/ucp/ucp_prefs.php @@ -59,6 +59,8 @@ class ucp_prefs $data[$var] = request_var($var, $default); } + $data['style'] = ($config['override_user_style']) ? $config['default_style'] : $data['style']; + $var_ary = array( 'dateformat' => array('string', false, 3, 30), 'lang' => array('match', false, '#^[a-z0-9_\-]{2,}$#i'), @@ -141,7 +143,7 @@ class ucp_prefs 'A_DEFAULT_DATEFORMAT' => addslashes($config['default_dateformat']), 'S_LANG_OPTIONS' => language_select($data['lang']), - 'S_STYLE_OPTIONS' => style_select($data['style']), + 'S_STYLE_OPTIONS' => ($config['override_user_style']) ? '' : style_select($data['style']), 'S_TZ_OPTIONS' => tz_select($data['tz']), 'S_CAN_HIDE_ONLINE' => ($auth->acl_get('u_hideonline')) ? true : false, 'S_SELECT_NOTIFY' => ($config['jab_enable'] && $user->data['user_jabber'] && @extension_loaded('xml')) ? true : false) |