mirror of
https://github.com/vichan-devel/vichan.git
synced 2024-12-18 10:25:55 +01:00
Merge pull request #856 from vichan-devel/RealAngeleno-patch-15
skip captcha or log settings in mod.php config
This commit is contained in:
commit
efd4810e83
@ -64,6 +64,10 @@ function config_vars() {
|
||||
$var['comment'][] = $temp_comment;
|
||||
$temp_comment = false;
|
||||
}
|
||||
|
||||
if (preg_match('!^\s*\$config\[(\'log_system\'|\'captcha\')\]!', $line)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
if (preg_match('!^\s*// ([^$].*)$!', $line, $matches)) {
|
||||
if ($var['default'] !== false) {
|
||||
|
Loading…
Reference in New Issue
Block a user