aboutsummaryrefslogtreecommitdiffstats
path: root/include/template.class.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/template.class.php')
-rw-r--r--include/template.class.php7
1 files changed, 5 insertions, 2 deletions
diff --git a/include/template.class.php b/include/template.class.php
index 3b585c199..b1707bca1 100644
--- a/include/template.class.php
+++ b/include/template.class.php
@@ -1364,8 +1364,11 @@ final class FileCombiner
private static function process_css($file)
{
$css = self::process_css_rec($file);
- require_once(PHPWG_ROOT_PATH.'include/cssmin.class.php');
- $css = CssMin::minify($css, array('Variables'=>false));
+ if (version_compare(PHP_VERSION, '5.2.4', '>='))
+ {
+ require_once(PHPWG_ROOT_PATH.'include/cssmin.class.php');
+ $css = CssMin::minify($css, array('Variables'=>false));
+ }
$css = trigger_event('combined_css_postfilter', $css);
return $css;
}