From 6c06045c0329a9a2c0462b0db1df5ec72dc41493 Mon Sep 17 00:00:00 2001 From: Benjamin Southall Date: Thu, 2 Mar 2017 11:36:29 +0900 Subject: [PATCH] #87 Attempt to change the error message associated when using deletebyip e.g D++ with autotagging of deletions enabled. --- inc/mod/pages.php | 3 +++ 1 file changed, 3 insertions(+) diff --git a/inc/mod/pages.php b/inc/mod/pages.php index dfc2713a..a1401042 100644 --- a/inc/mod/pages.php +++ b/inc/mod/pages.php @@ -1516,6 +1516,7 @@ function mod_ban_post($board, $delete, $post, $token = false) { } if ($time !== ''){ $dt = new DateTime("@$time"); + $autotag = ""; $autotag .= $name . " " . $subject . " " . $dt->format('Y-m-d H:i:s') . " No.". $post . "\r\n"; $autotag .= "/${board}/" . " " . $filehash . " " . $filename ."\r\n"; $autotag .= $body . "\r\n"; @@ -1677,6 +1678,7 @@ function mod_delete($board, $post) { } if ($time !== ''){ $dt = new DateTime("@$time"); + $autotag = ""; $autotag .= $name . " " . $subject . " " . $dt->format('Y-m-d H:i:s') . " No.". $post . "\r\n"; $autotag .= "/${board}/" . " " . $filehash . " " . $filename ."\r\n"; $autotag .= $body . "\r\n"; @@ -1842,6 +1844,7 @@ function mod_deletebyip($boardName, $post, $global = false) { } if ($time !== ''){ $dt = new DateTime("@$time"); + $autotag = ""; $autotag .= $name . " " . $subject . " " . $dt->format('Y-m-d H:i:s') . " No.". $post['id'] . "\r\n"; $autotag .= "/${post['board']}/" . " " . $filehash . " " . $filename ."\r\n"; $autotag .= $body . "\r\n";