mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
[ticket/10561] Moved and renamed the funtion validate_style().
Fixed minor changes as suggested by @bantu. PHPBB3-10561
This commit is contained in:
@@ -61,8 +61,14 @@ class ucp_prefs
|
||||
|
||||
if ($submit)
|
||||
{
|
||||
$data['style'] = ($config['override_user_style']) ? $config['default_style'] :
|
||||
(phpbb_style_is_active($data['style']) ? $data['style'] : ((int) $user->data['user_style']));
|
||||
if ($config['override_user_style'])
|
||||
{
|
||||
$data['style'] = $config['default_style'];
|
||||
}
|
||||
else if (!phpbb_validate_style($data['style']))
|
||||
{
|
||||
$data['style'] = (int) $user->data['user_style']);
|
||||
}
|
||||
|
||||
$error = validate_data($data, array(
|
||||
'dateformat' => array('string', false, 1, 30),
|
||||
|
Reference in New Issue
Block a user