|
@@ -670,14 +670,14 @@ function ApproveMessage()
|
|
|
approveTopics($topic, !$approved);
|
|
|
|
|
|
if ($starter != $user_info['id'])
|
|
|
- logAction('approve_topic', array('topic' => $topic, 'subject' => $subject, 'member' => $starter, 'board' => $board));
|
|
|
+ logAction(($approved ? 'un' : '') . 'approve_topic', array('topic' => $topic, 'subject' => $subject, 'member' => $starter, 'board' => $board));
|
|
|
}
|
|
|
else
|
|
|
{
|
|
|
approvePosts($_REQUEST['msg'], !$approved);
|
|
|
|
|
|
if ($poster != $user_info['id'])
|
|
|
- logAction('approve', array('topic' => $topic, 'subject' => $subject, 'member' => $poster, 'board' => $board));
|
|
|
+ logAction(($approved ? 'un' : '') . 'approve', array('topic' => $topic, 'subject' => $subject, 'member' => $poster, 'board' => $board));
|
|
|
}
|
|
|
|
|
|
redirectexit('topic=' . $topic . '.msg' . $_REQUEST['msg']. '#msg' . $_REQUEST['msg']);
|