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