Esempio n. 1
0
 /**
  * Updates an existing post.
  *
  * @return XenForo_ControllerResponse_Abstract
  */
 public function actionSave()
 {
     $postId = $this->_input->filterSingle('post_id', XenForo_Input::UINT);
     $ftpHelper = $this->getHelper('ForumThreadPost');
     list($post, $thread, $forum) = $ftpHelper->assertPostValidAndViewable($postId);
     $this->_assertCanEditPost($post, $thread, $forum);
     $this->_getModelSlide()->deleteSlide($thread['thread_id']);
     vtPhong_Helper::setSlideToRegistry($this->_input->filterSingle('slide', XenForo_Input::ARRAY_SIMPLE));
     return parent::actionSave();
 }
Esempio n. 2
0
 /**
  * Inserts a new thread into this forum.
  *
  * @return XenForo_ControllerResponse_Abstract
  */
 public function actionAddThread()
 {
     vtPhong_Helper::setSlideToRegistry($this->_input->filterSingle('slide', XenForo_Input::ARRAY_SIMPLE));
     return parent::actionAddThread();
 }