diff options
author | Alex Bilbie <alex@alexbilbie.com> | 2012-09-02 11:07:50 +0200 |
---|---|---|
committer | Alex Bilbie <alex@alexbilbie.com> | 2012-09-02 11:07:50 +0200 |
commit | 4e80d80ae6bda06b8c3bf2c041ab695b9d077340 (patch) | |
tree | ce70dddcd93812c3fd8311c804153e1689b39c76 /system/core/Loader.php | |
parent | c55708357b79899db984a058cab19d13be1e6ea9 (diff) | |
parent | 64f470bfb9b4aa4e0abc984dacd543bb7d059260 (diff) |
Merge pull request #1727 from pickupman/bugfix-loader-view_file
Fix bug #1000
Diffstat (limited to 'system/core/Loader.php')
-rw-r--r-- | system/core/Loader.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/system/core/Loader.php b/system/core/Loader.php index 0d05649ca..89b2028bf 100644 --- a/system/core/Loader.php +++ b/system/core/Loader.php @@ -779,11 +779,11 @@ class CI_Loader { $_ci_ext = pathinfo($_ci_view, PATHINFO_EXTENSION); $_ci_file = ($_ci_ext === '') ? $_ci_view.'.php' : $_ci_view; - foreach ($this->_ci_view_paths as $view_file => $cascade) + foreach ($this->_ci_view_paths as $_ci_view_file => $cascade) { - if (file_exists($view_file.$_ci_file)) + if (file_exists($_ci_view_file.$_ci_file)) { - $_ci_path = $view_file.$_ci_file; + $_ci_path = $_ci_view_file.$_ci_file; $file_exists = TRUE; break; } |