// setup logging
require_once('./includes/class_logging.php');
$log = new Logging;
- $log->set_bugid($bug['bugid']);
- $log->set_commentid($comment['commentid']);
+ $log->setBugId($bug['bugid']);
+ $log->setCommentId($comment['commentid']);
- $log->add_data(true, $commentapi->record, array('comment', 'hidden'), false, 'comment');
- $log->add_data(false, $commentapi->values, array('comment', 'hidden'), false, 'comment');
+ $log->addData(true, $commentapi->record, array('comment', 'hidden'), false, 'comment');
+ $log->addData(false, $commentapi->values, array('comment', 'hidden'), false, 'comment');
$lastgood = $db->queryFirst("
SELECT comment.* AS comment, user.displayname AS username
WHERE bugid = $bug[bugid]"
);
- $log->update_history();
+ $log->updateHistory();
$message->redirect(T('The comment was modified successfully.'), "showreport.php?bugid=$bug[bugid]");
}