Commits

wiredesignz  committed ecfc7ea

Updated view loader to prevent sub-directory path being removed.

  • Participants
  • Parent commits 32fdd5b
  • Branches default

Comments (0)

Files changed (1)

File third_party/MX/Loader.php

 
 	/** Load a module view **/
 	public function view($view, $vars = array(), $return = FALSE) {
-		list($path, $view) = Modules::find($view, $this->_module, 'views/');
-		if ($path != FALSE) $this->_ci_view_paths = array($path => TRUE) + $this->_ci_view_paths;
+		list($path, $_view) = Modules::find($view, $this->_module, 'views/');
+		
+		if ($path != FALSE) {
+			$this->_ci_view_paths = array($path => TRUE) + $this->_ci_view_paths;
+			$view = $_view;
+		}
+		
 		return $this->_ci_load(array('_ci_view' => $view, '_ci_vars' => $this->_ci_object_to_array($vars), '_ci_return' => $return));
 	}