diff options
author | Andreas Fischer <bantu@phpbb.com> | 2011-04-19 10:17:18 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2011-04-19 10:17:18 +0200 |
commit | 2701a587acba06ea503ca6463d42471687ff597a (patch) | |
tree | 2065b66520c950741b2078492b8032955156c46b /phpBB/includes/config | |
parent | 9241aa79ff8ab8a940cee01a301162187c24d198 (diff) | |
download | forums-2701a587acba06ea503ca6463d42471687ff597a.tar forums-2701a587acba06ea503ca6463d42471687ff597a.tar.gz forums-2701a587acba06ea503ca6463d42471687ff597a.tar.bz2 forums-2701a587acba06ea503ca6463d42471687ff597a.tar.xz forums-2701a587acba06ea503ca6463d42471687ff597a.zip |
[ticket/10139] Make signatures of set_atomic() consistent by using $new_value.
PHPBB3-10139
Diffstat (limited to 'phpBB/includes/config')
-rw-r--r-- | phpBB/includes/config/config.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/config/config.php b/phpBB/includes/config/config.php index a273391dc8..354dc85c03 100644 --- a/phpBB/includes/config/config.php +++ b/phpBB/includes/config/config.php @@ -135,16 +135,16 @@ class phpbb_config implements ArrayAccess, IteratorAggregate, Countable * * @param string $key The configuration option's name * @param string $old_value Current configuration value - * @param string $value New configuration value + * @param string $new_value New configuration value * @param bool $use_cache Whether this variable should be cached or if it * changes too frequently to be efficiently cached. * @return bool True if the value was changed, false otherwise. */ - public function set_atomic($key, $old_value, $value, $use_cache = true) + public function set_atomic($key, $old_value, $new_value, $use_cache = true) { if (!isset($this->config[$key]) || $this->config[$key] == $old_value) { - $this->config[$key] = $value; + $this->config[$key] = $new_value; return true; } return false; |