2019-02-03, 10:48 PM
The report reasons system allows for reasons to be used for any kind of report, even though the code doesn't seems to agree:
$reportreasons = $cache->read('reportreasons');
$reasons = $reportreasons[$report_type];
$reasonslist = '';
foreach($reasons as $reason)
{
$reason['title'] = htmlspecialchars_uni($lang->parse($reason['title']));
eval("\$reasonslist .= \"".$templates->get("report_reason")."\";");
}
eval("\$report_reasons = \"".$templates->get("report_reasons")."\";");