diff options
author | admin <devnull@localhost> | 2006-10-03 08:12:52 +0200 |
---|---|---|
committer | admin <devnull@localhost> | 2006-10-03 08:12:52 +0200 |
commit | 07ad666409b60610a1e5b07368506f9f0ca45b22 (patch) | |
tree | c12fb70383b464e5a411c6ad8df181316fd9b0d2 /system/codeigniter/Base5.php | |
parent | f6edc53e00677d5ec3859ab7fd50bb2c84fc2e6a (diff) |
Diffstat (limited to 'system/codeigniter/Base5.php')
-rw-r--r-- | system/codeigniter/Base5.php | 32 |
1 files changed, 12 insertions, 20 deletions
diff --git a/system/codeigniter/Base5.php b/system/codeigniter/Base5.php index ef3fc67f4..a0beea46c 100644 --- a/system/codeigniter/Base5.php +++ b/system/codeigniter/Base5.php @@ -32,31 +32,23 @@ class CI_Base { - public function CI_Base() - { - $instance =& _load_class('Instance'); - $instance->set_instance($this); - } -} - -class Instance { - public static $instance; + public static $instance; - public function set_instance(&$object) - { - self::$instance =& $object; - } - - public function &get_instance() - { - return self::$instance; - } + public function CI_Base() + { + self::$instance =& $this; + } + + public static function &get_instance() + { + return self::$instance; + } } function &get_instance() { - $instance =& _load_class('Instance'); - return $instance->get_instance(); + return CI_Base::get_instance(); } + ?>
\ No newline at end of file |