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-05-14 21:15:53 +00:00
|
|
|
if ($service == 'core.css'){
|
|
|
|
$minimizer = new OC_Minimizer_CSS();
|
2012-06-18 13:40:43 +00:00
|
|
|
$files = OC_TemplateLayout::findStylesheetFiles(OC_Util::$core_styles);
|
2012-06-15 10:07:31 +00:00
|
|
|
$minimizer->output($files, $service);
|
2012-05-14 21:15:53 +00:00
|
|
|
}
|
|
|
|
else if ($service == 'core.js'){
|
|
|
|
$minimizer = new OC_Minimizer_JS();
|
2012-06-18 13:40:43 +00:00
|
|
|
$files = OC_TemplateLayout::findJavascriptFiles(OC_Util::$core_scripts);
|
2012-06-15 10:07:31 +00:00
|
|
|
$minimizer->output($files, $service);
|
2012-05-14 21:15:53 +00:00
|
|
|
}
|