summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--system/core/Loader.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php
index 5a2175c2d..e2970613b 100644
--- a/system/core/Loader.php
+++ b/system/core/Loader.php
@@ -535,6 +535,8 @@ class CI_Loader {
*/
function add_package_path($path)
{
+ $path = rtrim($path, '/').'/';
+
array_unshift($this->_ci_library_paths, $path);
array_unshift($this->_ci_model_paths, $path);
array_unshift($this->_ci_helper_paths, $path);
@@ -569,6 +571,8 @@ class CI_Loader {
}
else
{
+ $path = rtrim($path, '/').'/';
+
foreach (array('_ci_library_paths', '_ci_model_paths', '_ci_helper_paths') as $var)
{
if (($key = array_search($path, $this->{$var})) !== FALSE)