/*=====================================================================*\
|| ###################################################################
|| # Bugdar
-|| # Copyright ©2002-2007 Blue Static
+|| # Copyright (c)2004-2009 Blue Static
|| #
|| # This program is free software; you can redistribute it and/or modify
|| # it under the terms of the GNU General Public License as published by
'editcomment'
);
-define('SVN', '$Id$');
$focus['showreport'] = 'focus';
require_once('./global.php');
require_once('./includes/api_comment.php');
-require_once('./includes/class_api_error.php');
$commentapi = new CommentAPI();
$commentapi->set('commentid', $input->in['commentid']);
// 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]");
}
$tpl->evaluate()->flush();
}
-/*=====================================================================*\
-|| ###################################################################
-|| # $HeadURL$
-|| # $Id$
-|| ###################################################################
-\*=====================================================================*/
?>
\ No newline at end of file