Quote:
Originally Posted by KirbyDE
@eXtremeTim
I think you can get rid of the editpost.php file edit.
Hookname: threaddata_presave
PHP Code:
global $getpost, $postinfo, $edit;
if (THIS_SCRIPT == 'editpost' AND $getpost['postid'] == $postinfo['postid'])
{
//need to update thread desc
$edit['threaddesc'] = htmlspecialchars_uni($edit['threaddesc']);
$this->set('threaddesc', $edit['threaddesc']);
}
|
Just tested, and it works! Nice job Andreas!