diff --git a/framework/base/View.php b/framework/base/View.php index 32aab50..9a9f8cc 100644 --- a/framework/base/View.php +++ b/framework/base/View.php @@ -388,9 +388,9 @@ class View extends Component protected function resolveBasePath() { if (!empty($this->basePath)) { - return is_array($this->basePath) ? $this->basePath : array($this->basePath); + return (array)$this->basePath; } elseif ($this->context instanceof Controller) { - return $this->context->module->getViewPath() . '/' . $this->context->getUniqueId(); + return array($this->context->module->getViewPath() . '/' . $this->context->getUniqueId()); } elseif ($this->context !== null) { $class = new \ReflectionClass($this->context); return array(dirname($class->getFileName()) . '/views');