function DoEditComment() { $commentid = FSS_Input::getInt('commentid', 0); if (!FSS_Permission::CanModerate()) { return; } if (!$commentid) { return; } $this->comment = $this->GetComment($commentid); foreach ($this->comment as $field => $value) { if (substr($field, 0, 7) == "custom_") { JRequest::setVar($field, $value); } } $this->commentid = $commentid; $this->can_add = true; $ident = $this->comment['ident']; $this->customfields = FSSCF::Comm_GetCustomFields($ident); // need to return the edit form with this comment filled in include $this->tmplpath . DS . 'editcomment.php'; exit; }