1
0
mirror of https://github.com/mrclay/minify.git synced 2025-08-19 04:11:20 +02:00

Easier config testing

This commit is contained in:
Steve Clay
2012-03-15 14:00:50 -04:00
parent 2275d21146
commit f40f4e4f56
3 changed files with 14 additions and 0 deletions

0
min/builder/.htaccess Normal file
View File

10
min/config-test.php Normal file
View File

@@ -0,0 +1,10 @@
<?php
/**
* Additional configuration applied when the variable "test" is added to the querystring.
*
* To test config options, place them in this file and add "&test" to your Minify URL.
* Note that if this is on a public server, anyone can execute your test.
*
* @package Minify
*/

View File

@@ -12,6 +12,10 @@ define('MINIFY_MIN_DIR', dirname(__FILE__));
// load config
require MINIFY_MIN_DIR . '/config.php';
if (isset($_GET['test'])) {
include MINIFY_MIN_DIR . '/config-test.php';
}
// setup include path
set_include_path($min_libPath . PATH_SEPARATOR . get_include_path());