From c26b9ebb00e29be2e972fece3bcf73d33249a64b Mon Sep 17 00:00:00 2001 From: Andrey Andreev Date: Mon, 24 Feb 2014 11:31:36 +0200 Subject: Don't use globals - Use load_class() to get objects during bootstrap process. - Change load_class() to accept a class constructor parameter instead of previously unused class name prefix. - Change CI_Router::__construct() to accept as a parameter. --- tests/mocks/core/common.php | 2 ++ 1 file changed, 2 insertions(+) (limited to 'tests/mocks/core') diff --git a/tests/mocks/core/common.php b/tests/mocks/core/common.php index 9eb6b0954..5c32ca5c2 100644 --- a/tests/mocks/core/common.php +++ b/tests/mocks/core/common.php @@ -65,6 +65,7 @@ if ( ! function_exists('get_mimes')) // -------------------------------------------------------------------- +/* if ( ! function_exists('load_class')) { function load_class($class, $directory = 'libraries', $prefix = 'CI_') @@ -86,6 +87,7 @@ if ( ! function_exists('load_class')) return $obj; } } +*/ // Clean up error messages // -------------------------------------------------------------------- -- cgit v1.2.3-24-g4f1b