aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB
diff options
context:
space:
mode:
authorGraham Eames <grahamje@users.sourceforge.net>2006-10-04 20:51:51 +0000
committerGraham Eames <grahamje@users.sourceforge.net>2006-10-04 20:51:51 +0000
commitdcdd47cb757d1a359c663d6f0c297f9336b58ffc (patch)
tree1a825f439fec119f275558cc2674faf528dc671c /phpBB
parent50a0c827ce37fa682d2a2490d8c5a8882274a503 (diff)
downloadforums-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')
-rw-r--r--phpBB/includes/ucp/ucp_prefs.php4
-rw-r--r--phpBB/styles/subSilver/template/ucp_prefs_personal.html2
2 files changed, 5 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)
diff --git a/phpBB/styles/subSilver/template/ucp_prefs_personal.html b/phpBB/styles/subSilver/template/ucp_prefs_personal.html
index d1e1e7cbc4..24efae86cf 100644
--- a/phpBB/styles/subSilver/template/ucp_prefs_personal.html
+++ b/phpBB/styles/subSilver/template/ucp_prefs_personal.html
@@ -63,10 +63,12 @@
<td class="row1" width="50%"><b class="genmed">{L_BOARD_LANGUAGE}:</b></td>
<td class="row2"><select name="lang">{S_LANG_OPTIONS}</select></td>
</tr>
+<!-- IF S_STYLE_OPTIONS -->
<tr>
<td class="row1" width="50%"><b class="genmed">{L_BOARD_STYLE}:</b></td>
<td class="row2"><select name="style">{S_STYLE_OPTIONS}</select></td>
</tr>
+<!-- ENDIF -->
<tr>
<td class="row1" width="50%"><b class="genmed">{L_BOARD_TIMEZONE}:</b></td>
<td class="row2"><select name="tz">{S_TZ_OPTIONS}</select></td>