mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-18 18:36:00 +01:00
skip captcha or log settings in mod.php config
relates to multidimensional arrays
This commit is contained in:
parent
d6677bb90c
commit
9dacdf59b1
@ -65,6 +65,10 @@ function config_vars() {
|
|||||||
$temp_comment = false;
|
$temp_comment = false;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (preg_match('!^\s*\$config\[(\'log_system\'|\'captcha\')\]!', $line)) {
|
||||||
|
continue;
|
||||||
|
}
|
||||||
|
|
||||||
if (preg_match('!^\s*// ([^$].*)$!', $line, $matches)) {
|
if (preg_match('!^\s*// ([^$].*)$!', $line, $matches)) {
|
||||||
if ($var['default'] !== false) {
|
if ($var['default'] !== false) {
|
||||||
$line = '';
|
$line = '';
|
||||||
|
Loading…
Reference in New Issue
Block a user