forked from leftypol/leftypol
Add auto_maintenance configuration option
This commit is contained in:
parent
870d3812d3
commit
bcfc934604
4 changed files with 8 additions and 3 deletions
2
post.php
2
post.php
|
@ -1673,7 +1673,7 @@ function handle_appeal()
|
|||
$ban_id = (int) $_POST['ban_id'];
|
||||
|
||||
$source_ip = $_SERVER['REMOTE_ADDR'];
|
||||
$ban = Bans::findSingle($_SERVER['REMOTE_ADDR'], $ban_id, $config['require_ban_view'], true);
|
||||
$ban = Bans::findSingle($source_ip, $ban_id, $config['require_ban_view'], $config['auto_maintenance']);
|
||||
|
||||
if (empty($ban)) {
|
||||
error($config['error']['noban']);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue