From 825eb48508df6319de9a73d3e79520697746e2d6 Mon Sep 17 00:00:00 2001 From: the_undefined Date: Tue, 13 May 2008 22:18:30 +0000 Subject: [PATCH] Fixed missing view path for plugins, closes #4244 git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@6856 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/libs/view/view.php | 12 +++++++++++- 1 file changed, 11 insertions(+), 1 deletion(-) diff --git a/cake/libs/view/view.php b/cake/libs/view/view.php index 7a943e19f..3a0d49fbe 100644 --- a/cake/libs/view/view.php +++ b/cake/libs/view/view.php @@ -799,7 +799,17 @@ class View extends Object { } } - return $this->_missingView($paths[0] . $name . $this->ext, 'missingView'); + $defaultPath = $paths[0]; + if ($this->plugin) { + $pluginPaths = Configure::read('pluginPaths'); + foreach ($paths as $path) { + if (strpos($path, $pluginPaths[0]) === 0) { + $defaultPath = $path; + break; + } + } + } + return $this->_missingView($defaultPath . $name . $this->ext, 'missingView'); } /**