From 705c94ffdf29f6bf5bd36f6c0fd3eeef752ac62a Mon Sep 17 00:00:00 2001 From: Claude Date: Sun, 24 Mar 2013 21:07:54 +0100 Subject: [PATCH] css-fallback for minified css --- htdocs/application/libraries/carabiner.php | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/htdocs/application/libraries/carabiner.php b/htdocs/application/libraries/carabiner.php index a33bdcc..f8037cf 100644 --- a/htdocs/application/libraries/carabiner.php +++ b/htdocs/application/libraries/carabiner.php @@ -896,6 +896,12 @@ class Carabiner { $path = ($flag == 'css') ? $this->style_path : $this->script_path; $ref = ( $this->isURL($file_ref) ) ? $file_ref : realpath($path.$file_ref); + //hack for stikked themes + if(!file_exists($ref)){ + $path = ($flag == 'css') ? 'themes/default/css/' : $this->script_path; + $ref = ( $this->isURL($file_ref) ) ? $file_ref : realpath($path.$file_ref); + } + switch($flag){ case 'js':