diff --git a/system/codeigniter/CodeIgniter.php b/system/codeigniter/CodeIgniter.php
index fb27191..5b3f54a 100644
--- a/system/codeigniter/CodeIgniter.php
+++ b/system/codeigniter/CodeIgniter.php
@@ -115,11 +115,9 @@
* 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 922382a..c8fa646 100644
--- a/system/libraries/Controller.php
+++ b/system/libraries/Controller.php
@@ -74,11 +74,11 @@
$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