From 75f2a886d8599b14f19d3171db0cd20e5290f478 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Florian=20Kr=C3=A4mer?= Date: Thu, 30 Oct 2014 16:55:40 +0100 Subject: [PATCH] Fixing the view file loading for plugins in View/View.php --- src/View/View.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/View/View.php b/src/View/View.php index 96b2bc86a8a..d34af16951e 100644 --- a/src/View/View.php +++ b/src/View/View.php @@ -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);