diff --git a/min/index.php b/min/index.php index 79b047d..f9f994b 100644 --- a/min/index.php +++ b/min/index.php @@ -9,11 +9,17 @@ define('MINIFY_MIN_DIR', dirname(__FILE__)); +if (defined('MINIFY_CUSTOM_CONFIG_DIR')) { + define('MINIFY_CONFIG_DIR', MINIFY_CUSTOM_CONFIG_DIR); +} else { + define('MINIFY_CONFIG_DIR', MINIFY_MIN_DIR); +} + // load config -require MINIFY_MIN_DIR . '/config.php'; +require MINIFY_CONFIG_DIR . '/config.php'; if (isset($_GET['test'])) { - include MINIFY_MIN_DIR . '/config-test.php'; + include MINIFY_CONFIG_DIR . '/config-test.php'; } require "$min_libPath/Minify/Loader.php"; @@ -69,4 +75,4 @@ if (isset($_GET['f']) || isset($_GET['g'])) { } else { header("Location: /"); exit(); -} \ No newline at end of file +}