nextcloud/core/minimizer.php

16 lines
417 B
PHP
Raw Normal View History

<?php
session_write_close();
OC_App::loadApps();
2012-09-07 17:22:01 +04:00
if ($service == 'core.css') {
$minimizer = new OC_Minimizer_CSS();
$files = OC_TemplateLayout::findStylesheetFiles(OC_Util::$coreStyles);
$minimizer->output($files, $service);
}
2012-09-07 17:22:01 +04:00
else if ($service == 'core.js') {
$minimizer = new OC_Minimizer_JS();
$files = OC_TemplateLayout::findJavascriptFiles(OC_Util::$coreScripts);
$minimizer->output($files, $service);
}