From: Bart Visscher Date: Thu, 14 Jun 2012 16:22:48 +0000 (+0200) Subject: Disable minizing when DEBUG is true X-Git-Tag: v4.5.0beta1~74^2~420^2~6 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=0d3f5f736f8e0d32470ea31980bae1094fcab50a;p=nextcloud-server.git Disable minizing when DEBUG is true --- diff --git a/lib/minimizer/css.php b/lib/minimizer/css.php index 4637417579e..09a0efdc3a7 100644 --- a/lib/minimizer/css.php +++ b/lib/minimizer/css.php @@ -67,7 +67,9 @@ class OC_Minimizer_CSS extends OC_Minimizer $remote .= dirname($file_info[2]); $css_out .= CSSMin::remap($css, dirname($file), $remote, true); } - $css_out = CSSMin::minify($css_out); + if (!defined('DEBUG') || !DEBUG){ + $css_out = CSSMin::minify($css_out); + } return $css_out; } } diff --git a/lib/minimizer/js.php b/lib/minimizer/js.php index 4ddaa79d81a..b9a023e0686 100644 --- a/lib/minimizer/js.php +++ b/lib/minimizer/js.php @@ -56,7 +56,9 @@ class OC_Minimizer_JS extends OC_Minimizer $js_out .= '/* ' . $file . ' */' . "\n"; $js_out .= file_get_contents($file); } - $js_out = JavaScriptMinifier::minify($js_out); + if (!defined('DEBUG') || !DEBUG){ + $js_out = JavaScriptMinifier::minify($js_out); + } return $js_out; } }