Skip to content

Commit

Permalink
Fixing the view file loading for plugins in View/View.php
Browse files Browse the repository at this point in the history
  • Loading branch information
Florian Krämer committed Oct 30, 2014
1 parent a00f109 commit 75f2a88
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/View/View.php
Expand Up @@ -815,8 +815,9 @@ protected function _getViewFileName($name = null) {
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);
Expand Down

0 comments on commit 75f2a88

Please sign in to comment.