diff --git a/lib/Cake/View/View.php b/lib/Cake/View/View.php index 69ba7b67608..ea5c90767e5 100644 --- a/lib/Cake/View/View.php +++ b/lib/Cake/View/View.php @@ -1007,7 +1007,10 @@ protected function _paths($plugin = null, $cached = true) { $paths = array_merge($paths, App::path('View', $plugin)); } - $this->_paths = array_unique(array_merge($paths, $viewPaths, array_keys($corePaths))); - return $this->_paths; + $paths = array_unique(array_merge($paths, $viewPaths, array_keys($corePaths))); + if ($plugin !== null) { + return $paths; + } + return $this->_paths = $paths; } }