1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-17 19:37:22 +02:00

All PHP/doc files have Unix newlines w/ no BOM

This commit is contained in:
Steve Clay
2008-08-29 22:56:34 +00:00
parent 5a09b4943a
commit 79a4e17fb6
48 changed files with 3999 additions and 3998 deletions

View File

@@ -1,4 +1,4 @@
<?php
<?php
/**
* Class Minify_CSS
* @package Minify

View File

@@ -26,5 +26,3 @@ function assertTrue($test, $message)
return (bool)$test;
}
?>

View File

@@ -1,7 +1,7 @@
<?php
if (isset($_FILES['subject']['name'])
&& preg_match('/\\.(js|css|html)$/', $_FILES['subject']['name'], $m)
&& preg_match('/\\.(js|css|x?html?)$/', $_FILES['subject']['name'], $m)
) {
ini_set('include_path',
dirname(__FILE__) . '/../../min/lib'
@@ -21,7 +21,9 @@ if (isset($_FILES['subject']['name'])
case 'css':
$type = 'CSS';
break;
case 'html':
case 'html': // fallthrough
case 'htm': // fallthrough
case 'xhtml':
$type = 'HTML';
$arg2 = array(
'cssMinifier' => array('Minify_CSS', 'minify')
@@ -38,6 +40,7 @@ if (isset($_FILES['subject']['name'])
. preg_replace('/\\.(\w+)$/', '.min.$1', $_FILES['subject']['name'])
. '"');
//@unlink($_FILES['subject']['tmp_name']);
echo $out;
exit();
}