mirror of
https://github.com/mrclay/minify.git
synced 2025-08-19 12:21:20 +02:00
Easier config testing
This commit is contained in:
0
min/builder/.htaccess
Normal file
0
min/builder/.htaccess
Normal file
10
min/config-test.php
Normal file
10
min/config-test.php
Normal 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
|
||||||
|
*/
|
||||||
|
|
@@ -12,6 +12,10 @@ define('MINIFY_MIN_DIR', dirname(__FILE__));
|
|||||||
// load config
|
// load config
|
||||||
require MINIFY_MIN_DIR . '/config.php';
|
require MINIFY_MIN_DIR . '/config.php';
|
||||||
|
|
||||||
|
if (isset($_GET['test'])) {
|
||||||
|
include MINIFY_MIN_DIR . '/config-test.php';
|
||||||
|
}
|
||||||
|
|
||||||
// setup include path
|
// setup include path
|
||||||
set_include_path($min_libPath . PATH_SEPARATOR . get_include_path());
|
set_include_path($min_libPath . PATH_SEPARATOR . get_include_path());
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user