summaryrefslogtreecommitdiffstats
path: root/system
diff options
context:
space:
mode:
authoradmin <devnull@localhost>2006-10-30 18:13:13 +0100
committeradmin <devnull@localhost>2006-10-30 18:13:13 +0100
commitcef2106de1c7044072499aa5d4e529a01c3db8a4 (patch)
treec8f898d01acd5915066e5d65b24ba09933cf903b /system
parenta42bf30be502fa46f61ba77575e71fb587b30102 (diff)
Diffstat (limited to 'system')
-rw-r--r--system/codeigniter/CodeIgniter.php4
-rw-r--r--system/libraries/Controller.php4
2 files changed, 3 insertions, 5 deletions
diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index fb27191ce..5b3f54ae3 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -115,11 +115,9 @@ $LANG =& load_class('Language');
* Note: The Loader class needs to be included first
*
*/
-
-load_class('Loader', FALSE);
-
if (floor(phpversion()) < 5)
{
+ load_class('Loader', FALSE);
require(BASEPATH.'codeigniter/Base4'.EXT);
}
else
diff --git a/system/libraries/Controller.php b/system/libraries/Controller.php
index 922382ab7..c8fa646c7 100644
--- a/system/libraries/Controller.php
+++ b/system/libraries/Controller.php
@@ -74,11 +74,11 @@ class Controller extends CI_Base {
$this->$var =& load_class($class);
}
- // In PHP 5 the Controller class is run as a discreet
+ // In PHP 5 the Loader class is run as a discreet
// class. In PHP 4 it extends the Controller
if (floor(phpversion()) >= 5)
{
- $this->load = new CI_Loader();
+ $this->load =& load_class('Loader');
$this->load->_ci_autoloader();
}
else