Extending \XF\ApprovalQueue\Thread class won't save entity!

R

RisteD

Guest
Member
PHP:

Code:

Code:
class Thread extends XFCP_Thread
{

    public function actionApprove(\XF\Entity\Thread $thread)
    {
            $this->thread = $thread;
            $userpoints = $this->thread->User['points'] ?? 0;
            $topicpoints = $this->thread->Forum['points_per_topic'];
            $replypoints = $this->thread->Forum['points'];
            \XF::dumpSimple($this->thread);
            $totalpoints = $userpoints + $topicpoints...

Read more

Continue reading...
 
BlackSpigot General Chat
Rules Help Users
    L @ LimitBreaker: Hi ! I'm still looking if someone is interested by the Pixelmon Reforged 1.12.2-8.4.3...
    Top