[RSS Feed/News] Validation & setupThreadCreate

Status
Not open for further replies.

XenForo

Administrative
  • Thread starter
  • Admin
  • #1
What am I missing here? I'm extending XF\Pub\Controller\Forum.php and changing the title and message body in the setupThreadCreate function, this means that there will always be content in the message body but I'm getting a "Please enter a valid message." error.

My code is basically this once all the conditionals and data manipulation are removed:
PHP:

Code:
protected function setupThreadCreate(\XF\Entity\Forum $forum)
{
    $creator = parent::setupThreadCreate($forum)...

Read more

ادامه مطلب...
 
Status
Not open for further replies.
Back
Top Bottom