aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authormistic100 <mistic@piwigo.org>2012-07-02 13:08:07 +0000
committermistic100 <mistic@piwigo.org>2012-07-02 13:08:07 +0000
commitba6dfe6a341600ab34c7db8abca7bc985b3d25ad (patch)
tree27966cc179a88ffd68fcf0e0bc02eadb412e2a20 /include
parentf99f5c1e6743902b8245471e4fd46618c848c38d (diff)
bug 2674: cssmin 3.0.1 requires PHP 5.2.4
git-svn-id: http://piwigo.org/svn/trunk@16278 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-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;
}