aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes
diff options
context:
space:
mode:
Diffstat (limited to 'phpBB/includes')
-rw-r--r--phpBB/includes/functions_user.php2
-rw-r--r--phpBB/includes/ucp/ucp_prefs.php4
2 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/functions_user.php b/phpBB/includes/functions_user.php
index 7313844955..770eab48d5 100644
--- a/phpBB/includes/functions_user.php
+++ b/phpBB/includes/functions_user.php
@@ -1952,7 +1952,7 @@ function validate_jabber($jid)
* @param int $style_id The style_id of a style which should be checked if activated or not.
* @return boolean
*/
-function phpbb_validate_style($style_id)
+function phpbb_style_is_active($style_id)
{
global $db;
diff --git a/phpBB/includes/ucp/ucp_prefs.php b/phpBB/includes/ucp/ucp_prefs.php
index 5b915824d6..f6fe916d8b 100644
--- a/phpBB/includes/ucp/ucp_prefs.php
+++ b/phpBB/includes/ucp/ucp_prefs.php
@@ -65,9 +65,9 @@ class ucp_prefs
{
$data['style'] = $config['default_style'];
}
- else if (!phpbb_validate_style($data['style']))
+ else if (!phpbb_style_is_active($data['style']))
{
- $data['style'] = (int) $user->data['user_style']);
+ $data['style'] = (int) $user->data['user_style'];
}
$error = validate_data($data, array(