summaryrefslogtreecommitdiffstats
path: root/lib/minimizer/js.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-06-14 18:22:48 +0200
committerBart Visscher <bartv@thisnet.nl>2012-06-15 11:18:44 +0200
commit0d3f5f736f8e0d32470ea31980bae1094fcab50a (patch)
treed56dc21ff783e1ef53d268a704a8ea046b8ed651 /lib/minimizer/js.php
parent4b7bdd5ace5a7274306ab135d74a52ba9b19c847 (diff)
downloadnextcloud-server-0d3f5f736f8e0d32470ea31980bae1094fcab50a.tar.gz
nextcloud-server-0d3f5f736f8e0d32470ea31980bae1094fcab50a.zip
Disable minizing when DEBUG is true
Diffstat (limited to 'lib/minimizer/js.php')
-rw-r--r--lib/minimizer/js.php4
1 files changed, 3 insertions, 1 deletions
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;
}
}