summaryrefslogtreecommitdiffstats
path: root/core/minimizer.php
diff options
context:
space:
mode:
authorBart Visscher <bartv@thisnet.nl>2012-05-14 23:15:53 +0200
committerBart Visscher <bartv@thisnet.nl>2012-05-16 18:53:46 +0200
commitce1e4425c2fc96f581428207edab040e42387bbc (patch)
treef47242e46ef11b20867f283fa1906c87893c4a55 /core/minimizer.php
parentf71fec8cdcb5d7d24b7dfa30dfaf24c5115e51c1 (diff)
downloadnextcloud-server-ce1e4425c2fc96f581428207edab040e42387bbc.tar.gz
nextcloud-server-ce1e4425c2fc96f581428207edab040e42387bbc.zip
Combine and minimize core and default app js files
Diffstat (limited to 'core/minimizer.php')
-rw-r--r--core/minimizer.php13
1 files changed, 10 insertions, 3 deletions
diff --git a/core/minimizer.php b/core/minimizer.php
index e4e6ff50e66..e5703053024 100644
--- a/core/minimizer.php
+++ b/core/minimizer.php
@@ -1,5 +1,12 @@
<?php
-$minimizer = new OC_Minimizer_CSS();
-$files = $minimizer->findFiles(OC_Util::$core_styles);
-$minimizer->output($files);
+if ($service == 'core.css'){
+ $minimizer = new OC_Minimizer_CSS();
+ $files = $minimizer->findFiles(OC_Util::$core_styles);
+ $minimizer->output($files);
+}
+else if ($service == 'core.js'){
+ $minimizer = new OC_Minimizer_JS();
+ $files = $minimizer->findFiles(OC_Util::$core_scripts);
+ $minimizer->output($files);
+}