mirror of
https://github.com/mrclay/minify.git
synced 2025-08-06 06:07:24 +02:00
be compatible with php-5.3
This commit is contained in:
@@ -22,7 +22,7 @@
|
|||||||
"require": {
|
"require": {
|
||||||
"ext-pcre": "*",
|
"ext-pcre": "*",
|
||||||
"firephp/firephp-core": "~0.4.0",
|
"firephp/firephp-core": "~0.4.0",
|
||||||
"php": ">=5.2.1",
|
"php": ">=5.3.0",
|
||||||
"tubalmartin/cssmin": "~2.4.8",
|
"tubalmartin/cssmin": "~2.4.8",
|
||||||
"mrclay/jsmin-php": "~2"
|
"mrclay/jsmin-php": "~2"
|
||||||
},
|
},
|
||||||
|
@@ -408,9 +408,9 @@ class Minify {
|
|||||||
$this->cache = new Minify_Cache_Null();
|
$this->cache = new Minify_Cache_Null();
|
||||||
|
|
||||||
$env = new Minify_Env();
|
$env = new Minify_Env();
|
||||||
$sourceFactory = new Minify_Source_Factory($env, [
|
$sourceFactory = new Minify_Source_Factory($env, array(
|
||||||
'checkAllowDirs' => false,
|
'checkAllowDirs' => false,
|
||||||
], $this->cache);
|
), $this->cache);
|
||||||
$controller = new Minify_Controller_Files($env, $sourceFactory);
|
$controller = new Minify_Controller_Files($env, $sourceFactory);
|
||||||
|
|
||||||
$options = array_merge($options, array(
|
$options = array_merge($options, array(
|
||||||
|
Reference in New Issue
Block a user