diff options
author | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-20 18:16:21 +0000 |
---|---|---|
committer | brettp <brettp@36083f99-b078-4883-b0ff-0f9b5a30f544> | 2011-02-20 18:16:21 +0000 |
commit | b91909b1a70c4cf6fc9bdb28d0192a52a1e98c09 (patch) | |
tree | 9589a5c938c3cae4e7c5cee28dea0c6c97eace71 /engine/lib/configuration.php | |
parent | 12fb8e8c876248c812cf89c28107d85787b10125 (diff) | |
download | elgg-b91909b1a70c4cf6fc9bdb28d0192a52a1e98c09.tar.gz elgg-b91909b1a70c4cf6fc9bdb28d0192a52a1e98c09.tar.bz2 |
Refs #2813, #2956. Ported get_config() returns null to 1.8's get_config() and elgg_get_config().
git-svn-id: http://code.elgg.org/elgg/trunk@8362 36083f99-b078-4883-b0ff-0f9b5a30f544
Diffstat (limited to 'engine/lib/configuration.php')
-rw-r--r-- | engine/lib/configuration.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/engine/lib/configuration.php b/engine/lib/configuration.php index 05a5adcc4..bf120a519 100644 --- a/engine/lib/configuration.php +++ b/engine/lib/configuration.php @@ -78,7 +78,7 @@ function elgg_get_root_dir() { * @param string $name Name of the configuration value * @param int $site_guid NULL for installation setting, 0 for default site * - * @return mixed Configuration value or false if it does not exist + * @return mixed Configuration value or null if it does not exist * @since 1.8.0 */ function elgg_get_config($name, $site_guid = 0) { @@ -106,7 +106,7 @@ function elgg_get_config($name, $site_guid = 0) { return $value; } - return false; + return null; } /** @@ -409,7 +409,7 @@ function set_config($name, $value, $site_guid = 0) { * @param string $name The name of the config value * @param int $site_guid Optionally, the GUID of the site (current site is assumed by default) * - * @return mixed|false + * @return mixed|null * @see set_config() * @see unset_config() */ @@ -469,7 +469,7 @@ function get_config($name, $site_guid = 0) { return $result; } - return false; + return null; } /** |