summaryrefslogtreecommitdiffstats
path: root/system/libraries/Loader.php
diff options
context:
space:
mode:
Diffstat (limited to 'system/libraries/Loader.php')
-rw-r--r--system/libraries/Loader.php20
1 files changed, 10 insertions, 10 deletions
diff --git a/system/libraries/Loader.php b/system/libraries/Loader.php
index f243a2879..709d9fe3d 100644
--- a/system/libraries/Loader.php
+++ b/system/libraries/Loader.php
@@ -315,13 +315,13 @@ class CI_Loader {
if (file_exists(APPPATH.'helpers/'.$helper.EXT))
{
- include_once(APPPATH.'helpers/'.$helper.EXT);
+ include(APPPATH.'helpers/'.$helper.EXT);
}
else
{
if (file_exists(BASEPATH.'helpers/'.$helper.EXT))
{
- include_once(BASEPATH.'helpers/'.$helper.EXT);
+ include(BASEPATH.'helpers/'.$helper.EXT);
}
else
{
@@ -381,13 +381,13 @@ class CI_Loader {
if (file_exists(APPPATH.'plugins/'.$plugin.EXT))
{
- include_once(APPPATH.'plugins/'.$plugin.EXT);
+ include(APPPATH.'plugins/'.$plugin.EXT);
}
else
{
if (file_exists(BASEPATH.'plugins/'.$plugin.EXT))
{
- include_once(BASEPATH.'plugins/'.$plugin.EXT);
+ include(BASEPATH.'plugins/'.$plugin.EXT);
}
else
{
@@ -454,7 +454,7 @@ class CI_Loader {
show_error('Unable to load the requested script: scripts/'.$script.EXT);
}
- include_once(APPPATH.'scripts/'.$script.EXT);
+ include(APPPATH.'scripts/'.$script.EXT);
$this->_ci_scripts[$script] = TRUE;
}
@@ -675,8 +675,8 @@ class CI_Loader {
show_error("Unable to load the requested class: ".$class);
}
- include_once(BASEPATH.'libraries/'.ucfirst($class).EXT);
- include_once(APPPATH.'libraries/'.config_item('subclass_prefix').$class.EXT);
+ include(BASEPATH.'libraries/'.ucfirst($class).EXT);
+ include(APPPATH.'libraries/'.config_item('subclass_prefix').$class.EXT);
return $this->_ci_init_class($class, config_item('subclass_prefix'), $params);
}
@@ -687,7 +687,7 @@ class CI_Loader {
$path = ($i % 2) ? APPPATH : BASEPATH;
if (file_exists($path.'libraries/'.$class.EXT))
{
- include_once($path.'libraries/'.$class.EXT);
+ include($path.'libraries/'.$class.EXT);
return $this->_ci_init_class($class, '', $params);
}
}
@@ -715,7 +715,7 @@ class CI_Loader {
$config = NULL;
if (file_exists(APPPATH.'config/'.$class.EXT))
{
- include_once(APPPATH.'config/'.$class.EXT);
+ include(APPPATH.'config/'.$class.EXT);
}
}
@@ -758,7 +758,7 @@ class CI_Loader {
*/
function _ci_autoloader()
{
- include_once(APPPATH.'config/autoload'.EXT);
+ include(APPPATH.'config/autoload'.EXT);
if ( ! isset($autoload))
{