When report is created as a thread, only the content title is available for the thread title phrase

TickTackk

Well-known member
Affected version
2.x
In XF\Service\Report\Creator Changing
PHP:
            $title = \XF::phrase('reported_thread_title', ['title' => $handler->getContentTitle($report)])->render('raw');
            $messageContent = \XF::phrase('reported_thread_message', $params)->render('raw');
to
PHP:
            $title = \XF::phrase('reported_thread_title', $params)->render('raw');
            $messageContent = \XF::phrase('reported_thread_message', $params)->render('raw');
will explore the reported_thread_title phrase to all the parameters reported_thread_message has access to.
 
Top Bottom