2012-05-14 15:57:43 +00:00
|
|
|
<?php
|
2012-06-16 12:15:43 +00:00
|
|
|
session_write_close();
|
2012-05-14 15:57:43 +00:00
|
|
|
|
2012-06-04 21:17:50 +00:00
|
|
|
OC_App::loadApps();
|
|
|
|
|
2012-09-07 13:22:01 +00:00
|
|
|
if ($service == 'core.css') {
|
2012-05-14 21:15:53 +00:00
|
|
|
$minimizer = new OC_Minimizer_CSS();
|
2013-08-15 06:49:19 +00:00
|
|
|
$files = OC_TemplateLayout::findStylesheetFiles(OC_Util::$coreStyles);
|
2012-06-15 10:07:31 +00:00
|
|
|
$minimizer->output($files, $service);
|
2012-05-14 21:15:53 +00:00
|
|
|
}
|
2012-09-07 13:22:01 +00:00
|
|
|
else if ($service == 'core.js') {
|
2012-05-14 21:15:53 +00:00
|
|
|
$minimizer = new OC_Minimizer_JS();
|
2013-08-15 06:49:19 +00:00
|
|
|
$files = OC_TemplateLayout::findJavascriptFiles(OC_Util::$coreScripts);
|
2012-06-15 10:07:31 +00:00
|
|
|
$minimizer->output($files, $service);
|
2012-05-14 21:15:53 +00:00
|
|
|
}
|