Browse Source

Fixing the view file loading for plugins in View/View.php

Florian Krämer 11 years ago
parent
commit
75f2a886d8
1 changed files with 2 additions and 1 deletions
  1. 2 1
      src/View/View.php

+ 2 - 1
src/View/View.php

@@ -815,8 +815,9 @@ class View {
 		if ($name === null) {
 			$name = $this->view;
 		}
-		$name = str_replace('/', DS, $name);
+
 		list($plugin, $name) = $this->pluginSplit($name);
+		$name = str_replace('/', DS, $name);
 
 		if (strpos($name, DS) === false && $name[0] !== '.') {
 			$name = $this->viewPath . DS . $subDir . Inflector::underscore($name);