1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-29 00:29:59 +02:00

Implemented SPL autoloader, removed class requires

This commit is contained in:
Steve Clay
2009-09-19 17:00:52 +00:00
parent 4cb2ba2cab
commit 444335b28c
32 changed files with 104 additions and 82 deletions

View File

@@ -79,11 +79,6 @@ if (isset($_POST['url'])) {
die('Unrecognized Content-Type: ' . $type['sent']);
}
require 'Minify.php';
require 'Minify/HTML.php';
require 'Minify/CSS.php';
require 'JSMin.php';
if ($type['minify'] === 'text/html'
&& isset($_POST['addBase'])
&& ! preg_match('@<base\\b@i', $content)) {
@@ -100,11 +95,9 @@ if (isset($_POST['url'])) {
if ($type['minify'] === 'text/html') {
if (isset($_POST['minJs'])) {
$sourceSpec['minifyOptions']['jsMinifier'] = array('JSMin', 'minify');
require 'JSMin.php';
}
if (isset($_POST['minCss'])) {
$sourceSpec['minifyOptions']['cssMinifier'] = array('Minify_CSS', 'minify');
require 'Minify/CSS.php';
}
}