mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-11-25 16:00:22 +01:00
No need for global config
This commit is contained in:
parent
5994964450
commit
a4222c2d38
@ -111,7 +111,6 @@ function error($message, $priority = true, $debug_stuff = false) {
|
|||||||
|
|
||||||
$pw = $config['db']['password'];
|
$pw = $config['db']['password'];
|
||||||
$debug_callback = function(&$item) use (&$debug_callback, $pw) {
|
$debug_callback = function(&$item) use (&$debug_callback, $pw) {
|
||||||
global $config;
|
|
||||||
if (is_array($item)) {
|
if (is_array($item)) {
|
||||||
$item = array_filter($item, $debug_callback);
|
$item = array_filter($item, $debug_callback);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user