mirror of
https://github.com/mrclay/minify.git
synced 2025-08-26 15:24:48 +02:00
builder : checks min/config.php for cache path and uploaderHoursBehind
This commit is contained in:
@@ -1,10 +1,16 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
|
require dirname(__FILE__) . '/../config.php';
|
||||||
|
|
||||||
set_include_path(dirname(__FILE__) . '/../lib' . PATH_SEPARATOR . get_include_path());
|
set_include_path(dirname(__FILE__) . '/../lib' . PATH_SEPARATOR . get_include_path());
|
||||||
|
|
||||||
require 'Minify.php';
|
require 'Minify.php';
|
||||||
|
|
||||||
Minify::setCache();
|
if (0 === stripos(PHP_OS, 'win')) {
|
||||||
|
Minify::setDocRoot(); // we may be on IIS
|
||||||
|
}
|
||||||
|
Minify::setCache(isset($min_cachePath) ? $min_cachePath : null);
|
||||||
|
Minify::$uploaderHoursBehind = $min_uploaderHoursBehind;
|
||||||
|
|
||||||
Minify::serve('Page', array(
|
Minify::serve('Page', array(
|
||||||
'file' => dirname(__FILE__) . '/_index.html'
|
'file' => dirname(__FILE__) . '/_index.html'
|
||||||
|
Reference in New Issue
Block a user