Replace *API($bugsys) with API()
[bugdar.git] / editcomment.php
index ed3a9e450491c9bbb5ddeba7a7e8c603cdadfb25..527e56e0370aa2ec43dd75b18cb25e5009a4c588 100644 (file)
@@ -33,7 +33,7 @@ require_once('./includes/api_comment.php');
 require_once('./includes/class_api_error.php');
 APIError(array(new API_Error_Handler($message), 'user_cumulative'));
 
-$commentapi = new CommentAPI($bugsys);
+$commentapi = new CommentAPI();
 $commentapi->set('commentid',  $input->in['commentid']);
 $commentapi->set_condition();
 $commentapi->fetch();
@@ -191,7 +191,7 @@ if ($_REQUEST['do'] == 'edit')
        $comment['posttime'] = $datef->format(bugdar::$options['dateformat'], $comment['dateline']);
        if ($comment['userid'])
        {
-               $commenter = new UserAPI($bugsys);
+               $commenter = new UserAPI();
                $commenter->set('userid', $comment['userid']);
                $commenter->set_condition();
                $commenter->fetch();