Quote:
Originally Posted by MarcoH64
Hmm, i always seem to forget legacy. Will have a look for a quick fix tomorrow.
|
I've just done this for now, but no doubt you could come up with a better fix..
Code:
if ($show['mh_pmwbrp_reportpmlink'])
{
$show['reportlink'] = true;
require_once(DIR . '/includes/functions_mh_pmwb.php');
mh_pmwb_modify_template(&$this->registry->templatecache, 'mh_pmwbrp', 'postbit', 'report_button'
, 'href=\"report.php?" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl\'] . "p=$post[postid]\"'
, 'href=\"mh_pmwbrp_report.php?" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl\'] . "do=reportpm&pmid=$post[pmid]\"');
mh_pmwb_modify_template(&$this->registry->templatecache, 'mh_pmwbrp', 'postbit_legacy', 'report_button'
, 'href=\"report.php?" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl\'] . "p=$post[postid]\"'
, 'href=\"mh_pmwbrp_report.php?" . $GLOBALS[\'vbulletin\']->session->vars[\'sessionurl\'] . "do=reportpm&pmid=$post[pmid]\"');
}