mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-06-08 00:42:19 +02:00
replace hardcoded configuration path '/config.php' with CONFIG_FILE named constant. Thus you can embed file manager with different configs.
This commit is contained in:
parent
6bdc5ccfb3
commit
306090be65
|
@ -127,9 +127,8 @@ $ip_blacklist = array(
|
||||||
);
|
);
|
||||||
|
|
||||||
// if User has the customized config file, try to use it to override the default config above
|
// if User has the customized config file, try to use it to override the default config above
|
||||||
$config_file = __DIR__.'/config.php';
|
if (defined('CONFIG_FILE') && is_readable(CONFIG_FILE))) {
|
||||||
if (is_readable($config_file)) {
|
@include(CONFIG_FILE);
|
||||||
@include($config_file);
|
|
||||||
}
|
}
|
||||||
|
|
||||||
// --- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL ---
|
// --- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL ---
|
||||||
|
|
Loading…
Reference in a new issue