From 01d4835d146d2b964ea3f91928b2bf105ac72eeb Mon Sep 17 00:00:00 2001 From: Dmitry Demidovsky Date: Sat, 5 Dec 2015 23:00:11 +0300 Subject: [PATCH] translate legacy setting to option for source factory (AllowDir) --- index.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/index.php b/index.php index dbe285f..938a49b 100644 --- a/index.php +++ b/index.php @@ -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);