Updates for everything done to class_logging.php
[bugdar.git] / editcomment.php
index 7fd16a81d345bcc273b4e1a4c55f0f6ffc25a21f..2e2fd4e035eec997afe1335b7c917668cf72797c 100644 (file)
@@ -141,11 +141,11 @@ if ($_POST['do'] == 'update')
                // 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
@@ -163,7 +163,7 @@ if ($_POST['do'] == 'update')
                        WHERE bugid = $bug[bugid]"
                );
                
-               $log->update_history();
+               $log->updateHistory();
                
                $message->redirect(T('The comment was modified successfully.'), "showreport.php?bugid=$bug[bugid]");
        }