summaryrefslogtreecommitdiffstats
path: root/core/minimizer.php
blob: eeeddf86a814be9aa10528daf1b7b64b13b4e3e5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
<?php
session_write_close();

OC_App::loadApps();

if ($service == 'core.css') {
	$minimizer = new OC_Minimizer_CSS();
	$files = OC_TemplateLayout::findStylesheetFiles(OC_Util::$coreStyles);
	$minimizer->output($files, $service);
}
else if ($service == 'core.js') {
	$minimizer = new OC_Minimizer_JS();
	$files = OC_TemplateLayout::findJavascriptFiles(OC_Util::$coreScripts);
	$minimizer->output($files, $service);
}