public function handleActions() { if (!empty($this->scriptProperties['spam-thread'])) { if ($this->thread->remove(array(), true, true)) { $this->discuss->logActivity('thread_spam_remove', $this->thread->toArray(), $this->thread->getUrl()); $url = $this->discuss->request->makeUrl('board', array('board' => $this->thread->get('board'))); $this->modx->sendRedirect($url); } } }
public function handleActions() { /* process form */ if (!empty($this->scriptProperties['remove-message'])) { if ($this->thread->remove()) { /* log activity */ $this->discuss->logActivity('message_thread_remove', $this->thread->toArray(), $this->thread->getUrl()); $url = $this->discuss->request->makeUrl('messages'); $this->modx->sendRedirect($url); } } }