aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/functions.php
diff options
context:
space:
mode:
authorNils Adermann <naderman@naderman.de>2013-02-24 17:33:41 +0100
committerNils Adermann <naderman@naderman.de>2013-02-24 17:33:41 +0100
commit54f34dd26f6a166cf1bf9f3c7e483989af29ec71 (patch)
treef3f3dbaed130b302a146217853aa5e11de4c92a4 /phpBB/includes/functions.php
parentafefe46591af3522770d23b662d6dac2e5352037 (diff)
parentd5d412e8271eeee2c416317a9179d5c2005c9383 (diff)
downloadforums-54f34dd26f6a166cf1bf9f3c7e483989af29ec71.tar
forums-54f34dd26f6a166cf1bf9f3c7e483989af29ec71.tar.gz
forums-54f34dd26f6a166cf1bf9f3c7e483989af29ec71.tar.bz2
forums-54f34dd26f6a166cf1bf9f3c7e483989af29ec71.tar.xz
forums-54f34dd26f6a166cf1bf9f3c7e483989af29ec71.zip
Merge branch 'develop-olympus' into develop
* develop-olympus: [ticket/7262] Add note about set_config() not updating is_dynamic. [ticket/7262] Add $is_dynamic example to set_config() and set_config_count(). [ticket/7262] Backport set_config() and set_config_count() docs from develop. Conflicts: phpBB/includes/functions.php
Diffstat (limited to 'phpBB/includes/functions.php')
-rw-r--r--phpBB/includes/functions.php25
1 files changed, 22 insertions, 3 deletions
diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php
index d0ef2759d5..d9af268f80 100644
--- a/phpBB/includes/functions.php
+++ b/phpBB/includes/functions.php
@@ -97,7 +97,18 @@ function request_var($var_name, $default, $multibyte = false, $cookie = false, $
}
/**
-* Set config value. Creates missing config entry.
+* Sets a configuration option's value.
+*
+* Please note that this function does not update the is_dynamic value for
+* an already existing config option.
+*
+* @param string $config_name The configuration option's name
+* @param string $config_value New configuration value
+* @param bool $is_dynamic Whether this variable should be cached (false) or
+* if it changes too frequently (true) to be
+* efficiently cached.
+*
+* @return null
*
* @deprecated
*/
@@ -119,7 +130,15 @@ function set_config($config_name, $config_value, $is_dynamic = false, phpbb_conf
}
/**
-* Set dynamic config value with arithmetic operation.
+* Increments an integer config value directly in the database.
+*
+* @param string $config_name The configuration option's name
+* @param int $increment Amount to increment by
+* @param bool $is_dynamic Whether this variable should be cached (false) or
+* if it changes too frequently (true) to be
+* efficiently cached.
+*
+* @return null
*
* @deprecated
*/
@@ -5582,7 +5601,7 @@ function phpbb_convert_30_dbms_to_31($dbms)
/*
$reflection = new \ReflectionClass($dbms);
-
+
if ($reflection->isSubclassOf('phpbb_db_driver'))
{
return $dbms;