Making config_item work again after I pulled it from CI_TestCase
diff --git a/tests/lib/common.php b/tests/lib/common.php
index 994e9bc..6d29eb0 100644
--- a/tests/lib/common.php
+++ b/tests/lib/common.php
@@ -13,15 +13,21 @@
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];
}
// --------------------------------------------------------------------