mirror of
https://github.com/prasathmani/tinyfilemanager
synced 2024-05-17 21:16:38 +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
|
||||
$config_file = __DIR__.'/config.php';
|
||||
if (is_readable($config_file)) {
|
||||
@include($config_file);
|
||||
if (defined('CONFIG_FILE') && is_readable(CONFIG_FILE))) {
|
||||
@include(CONFIG_FILE);
|
||||
}
|
||||
|
||||
// --- EDIT BELOW CAREFULLY OR DO NOT EDIT AT ALL ---
|
||||
|
|
Loading…
Reference in a new issue