Commits

Greg Aker committed 1945099

Flipping around contents of a conditional in _ci_load() so the small bits are on top.

  • Participants
  • Parent commits 6e218cf

Comments (0)

Files changed (1)

File system/core/Loader.php

 		$file_exists = FALSE;
 
 		// Set the path to the requested file
-		if ($_ci_path == '')
+		if ($_ci_path != '')
+		{
+			$_ci_x = explode('/', $_ci_path);
+			$_ci_file = end($_ci_x);
+		}
+		else
 		{
 			$_ci_ext = pathinfo($_ci_view, PATHINFO_EXTENSION);
 			$_ci_file = ($_ci_ext == '') ? $_ci_view.'.php' : $_ci_view;
 				}				
 			}
 		}
-		else
-		{
-			$_ci_x = explode('/', $_ci_path);
-			$_ci_file = end($_ci_x);
-		}
 
 		if ( ! $file_exists && ! file_exists($_ci_path))
 		{