diff options
author | Pascal Kriete <pascal.kriete@ellislab.com> | 2011-04-21 07:21:55 +0200 |
---|---|---|
committer | Pascal Kriete <pascal.kriete@ellislab.com> | 2011-04-21 07:21:55 +0200 |
commit | 88b296311090acdb84719148d3c722ca30bd3ed7 (patch) | |
tree | 3fad45cb0991d38e7ef5f94c5c079abf44482268 | |
parent | ae7b3f9265ab5d5776d729d6258f3ad2b311ac8c (diff) |
Making config_item work again after I pulled it from CI_TestCase
-rw-r--r-- | tests/lib/common.php | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/tests/lib/common.php b/tests/lib/common.php index 994e9bc22..6d29eb0d6 100644 --- a/tests/lib/common.php +++ b/tests/lib/common.php @@ -13,15 +13,21 @@ function &get_instance() function &get_config() { $test = CI_TestCase::instance(); - $config = $test->ci_config_array(); + $config = $test->ci_get_config(); return $config; } function config_item($item) { - $test = CI_TestCase::instance(); - return $test->ci_config_item($item); + $config =& get_config(); + + if ( ! isset($config[$item])) + { + return FALSE; + } + + return $config[$item]; } // -------------------------------------------------------------------- |