Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[ticket/9245] Rename function and variables

Rename the new function and variables to better describe the
new situation.

PHPBB3-9245
  • Loading branch information...
commit 10a192cdf0d856b0382b3c28a8180db8d8666657 1 parent 7148213
@erikfrerejean authored
View
10 phpBB/includes/acp/acp_board.php
@@ -451,7 +451,7 @@ function main($id, $mode)
// Used to update some bot configuration
// This array is also used to map the configuration values to user settings
- $bot_update = array(
+ $bot_update_options = array(
'default_lang' => '',
'default_style' => '',
'board_timezone' => '',
@@ -471,12 +471,12 @@ function main($id, $mode)
continue;
}
- if (isset($bot_update[$config_name]))
+ if (isset($bot_update_options[$config_name]))
{
// Changed?
if ($config[$config_name] != $cfg_array[$config_name])
{
- $bot_update[$config_name] = $cfg_array[$config_name];
+ $bot_update_options[$config_name] = $cfg_array[$config_name];
}
}
@@ -501,14 +501,14 @@ function main($id, $mode)
}
// Update bots if the default style or language is changed
- if ($submit && !empty($bot_update))
+ if ($submit && !empty($bot_update_options))
{
if (!function_exists('set_bot_default_lang_style'))
{
include($phpbb_root_path . 'includes/functions_user.' . $phpEx);
}
- set_bot_default_lang_style($bot_update);
+ phpbb_set_bot_default_options($bot_update_options);
}
// Store news and exclude ids
View
2  phpBB/includes/functions_user.php
@@ -3669,7 +3669,7 @@ function remove_newly_registered($user_id, $user_data = false)
* won't be updated.
* @return void
*/
-function set_bot_default_lang_style(array $options)
+function phpbb_set_bot_default_options(array $options)
{
global $config, $db;
Please sign in to comment.
Something went wrong with that request. Please try again.