From 9e8f5d57c1e113dac7a37aeffd05c54c6b284dd3 Mon Sep 17 00:00:00 2001 From: Taylor Otwell Date: Thu, 16 Jun 2011 21:01:55 -0500 Subject: [PATCH] tweaking config class comments. --- system/config.php | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/system/config.php b/system/config.php index 62dd0fc8..35505384 100644 --- a/system/config.php +++ b/system/config.php @@ -17,9 +17,9 @@ class Config { */ public static function get($key) { - // ----------------------------------------------------- - // We are are just pulling in a file, skip loading a key + // If a dot is not present, we will just return the + // entire configuration array. // ----------------------------------------------------- if(strpos($key, '.') == 0) { @@ -29,7 +29,6 @@ class Config { } list($file, $key) = static::parse($key); - static::load($file); if (array_key_exists($key, static::$items[$file])) @@ -50,7 +49,6 @@ class Config { public static function set($key, $value) { list($file, $key) = static::parse($key); - static::load($file); static::$items[$file][$key] = $value;