mirror of
https://github.com/mrclay/minify.git
synced 2025-08-13 17:44:00 +02:00
translate legacy setting to option for source factory (AllowDir)
This commit is contained in:
@@ -120,6 +120,11 @@ $sourceFactoryOptions = array();
|
||||
if (isset($min_serveOptions['minApp']['noMinPattern'])) {
|
||||
$sourceFactoryOptions['noMinPattern'] = $min_serveOptions['minApp']['noMinPattern'];
|
||||
}
|
||||
|
||||
if (isset($min_serveOptions['minApp']['allowDirs'])) {
|
||||
$sourceFactoryOptions['allowDirs'] = $min_serveOptions['minApp']['allowDirs'];
|
||||
}
|
||||
|
||||
$sourceFactory = new Minify_Source_Factory($env, $sourceFactoryOptions, $cache);
|
||||
|
||||
$controller = call_user_func($min_factories['controller'], $env, $sourceFactory);
|
||||
|
Reference in New Issue
Block a user