From b51ad21dcc536d43718e60e6badc789c90d02500 Mon Sep 17 00:00:00 2001 From: arzynik Date: Fri, 25 Jan 2013 15:57:06 -0500 Subject: [PATCH] fixed #670. now checks to see if files exist befor sending them to minify --- include/library/Crunchbutton/Controller/AssetBundle.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/include/library/Crunchbutton/Controller/AssetBundle.php b/include/library/Crunchbutton/Controller/AssetBundle.php index 0beff2052..e92b920b4 100644 --- a/include/library/Crunchbutton/Controller/AssetBundle.php +++ b/include/library/Crunchbutton/Controller/AssetBundle.php @@ -19,6 +19,13 @@ class Crunchbutton_Controller_AssetBundle extends Cana_Controller { } public function serve($files) { + foreach ($files as $key => $file) { + if (!file_exists($file)) { + + unset($files[$key]); + } + } + Minify::setCache(c::config()->dirs->cache.'/min/'); return Minify::serve('Files', [ 'files' => $files,