1
0
mirror of https://github.com/vichan-devel/vichan.git synced 2024-12-18 10:25:55 +01:00

skip captcha or log settings in mod.php config

relates to multidimensional arrays
This commit is contained in:
Lorenzo Yario 2024-12-16 23:15:23 -06:00 committed by GitHub
parent d6677bb90c
commit 9dacdf59b1
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -64,6 +64,10 @@ function config_vars() {
$var['comment'][] = $temp_comment; $var['comment'][] = $temp_comment;
$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) {