Commits

wiredesignz committed ee11add

Ensure only the file extension is checked.

  • Participants
  • Parent commits e8e8449
  • Branches default

Comments (0)

Files changed (1)

third_party/MX/Loader.php

 		if (isset($_ci_view)) {
 			
 			$_ci_path = '';
-			$_ci_file = strpos($_ci_view, '.') ? $_ci_view : $_ci_view.EXT;
+			
+			/* add file extension if not provided */
+			$_ci_file = (pathinfo($_ci_view, PATHINFO_EXTENSION)) ? $_ci_view : $_ci_view.EXT;
 			
 			foreach ($this->_ci_view_paths as $path => $cascade) {				
 				if (file_exists($view = $path.$_ci_file)) {