diff --git a/views/helpers/asset.php b/views/helpers/asset.php index 539f185..947fe99 100644 --- a/views/helpers/asset.php +++ b/views/helpers/asset.php @@ -366,7 +366,10 @@ function __findFile(&$asset, $type) { $paths = array($this->__getPath($type)); $paths = array_merge($paths, $this->options['searchPaths']); - + + if(!empty($this->theme)) { + $paths[] = VIEWS . 'themed' . DS . $this->theme . DS . 'webroot' . DS; + } if (!empty($asset['plugin']) > 0) { $pluginPaths = App::path('plugins');