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