diff --git a/system/core/Loader.php b/system/core/Loader.php index 027ed20e56f..a4039c6f0db 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -673,7 +673,7 @@ public function add_package_path($path, $view_cascade=TRUE) // Add config file path $config =& $this->_ci_get_component('config'); - array_unshift($config->_config_paths, $path); + array_push($config->_config_paths, $path); } // -------------------------------------------------------------------- @@ -713,7 +713,7 @@ public function remove_package_path($path = '', $remove_config_path = TRUE) array_shift($this->_ci_model_paths); array_shift($this->_ci_helper_paths); array_shift($this->_ci_view_paths); - array_shift($config->_config_paths); + array_pop($config->_config_paths); } else {