Example #1
0
 protected function _setSilentEditOptions(array $post, array $thread, array $forum, XenForo_DataWriter_DiscussionMessage_Post $dw)
 {
     if ($this->_getPostModel()->canControlSilentEdit($post, $thread, $forum)) {
         $logEdit = !$this->_input->filterSingle('silent', XenForo_Input::UINT);
         $dw->setOption(XenForo_DataWriter_DiscussionMessage_Post::OPTION_UPDATE_EDIT_DATE, $logEdit);
         if (!$logEdit && $this->_input->filterSingle('clear_edit', XenForo_Input::UINT)) {
             $dw->set('last_edit_date', 0);
         }
     }
 }