From b38255be999b3bd8a92216bd6e13170cf04ca763 Mon Sep 17 00:00:00 2001 From: Peter Farsinsen Date: Fri, 7 Oct 2011 15:26:22 +0200 Subject: [PATCH] Adding support for themes --- views/helpers/asset.php | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) 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');