mirror of
https://bitbucket.org/jsuto/piler.git
synced 2025-06-13 03:07:02 +02:00
fixing database schema for message removal
Signed-off-by: Janos SUTO <sj@acts.hu>
This commit is contained in:
@ -7,7 +7,7 @@ class ControllerAuditRemoval extends Controller {
|
||||
|
||||
$this->id = "content";
|
||||
$this->template = "audit/removal.tpl";
|
||||
$this->layout = "common/layout";
|
||||
$this->layout = "common/layout-audit";
|
||||
|
||||
$request = Registry::get('request');
|
||||
$db = Registry::get('db');
|
||||
|
@ -40,7 +40,7 @@ class ControllerMessageBulkremove extends Controller {
|
||||
}
|
||||
|
||||
foreach($idlist as $id) {
|
||||
$db->query("INSERT INTO " . TABLE_DELETED . " (id, email, reason, date1, deleted) VALUES(?,?,?,?,?)", [$id, $this->data['username'], $this->request->post['reason'], NOW, $deleted]);
|
||||
$db->query("INSERT INTO " . TABLE_DELETED . " (id, requestor, reason1, date1, deleted) VALUES(?,?,?,?,?)", [$id, $this->data['username'], $this->request->post['reason'], NOW, $deleted]);
|
||||
|
||||
if(NEED_TO_APPROVE_DELETE) {
|
||||
AUDIT(ACTION_MARK_MESSAGE_FOR_REMOVAL, '', '', $id, '');
|
||||
|
Reference in New Issue
Block a user