mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 18:21:39 +09:00
Close Connection when there is no connection value.
git-svn-id: http://xe-core.googlecode.com/svn/branches/maserati@13161 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
034a5c0288
commit
f70ce644ce
1410 changed files with 7188 additions and 53541 deletions
|
|
@ -94,17 +94,19 @@ function execute($dir) {
|
|||
echo " Minifying CSS files...";
|
||||
$css_files = get_target_files('css', $dir, $files_to_skip);
|
||||
|
||||
if(count($css_files) && !class_exists('CssMin')) {
|
||||
require dirname(__FILE__).'/cssmin/cssmin.php';
|
||||
if(count($css_files) && !class_exists('CSSmin')) {
|
||||
require dirname(__FILE__).'/cssmin/CSSmin.php';
|
||||
}
|
||||
|
||||
$oCSSmin = new CSSmin();
|
||||
|
||||
foreach($css_files as $file) {
|
||||
if(!is_readable($file)) continue;
|
||||
|
||||
$target = preg_replace('@\.css$@', '.min.css', $file);
|
||||
$content = file_get_contents($file);
|
||||
|
||||
file_put_contents($target, $copyright.CssMin::minify($content, $option));
|
||||
file_put_contents($target, $copyright.$oCSSmin->run($content));
|
||||
echo '.';
|
||||
}
|
||||
echo " Done\n";
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue