Replace *API($bugsys) with API()
[bugdar.git] / editreport.php
index 9c55f87921f5e7c324815ebf3e93a149586d315b..ea84e938f33f86ce788e11887a4046c4733ab779 100644 (file)
@@ -57,7 +57,7 @@ $log->set_bugid($bug['bugid']);
 
 $notif = new NotificationCenter;
 
-$bugapi = new BugAPI($bugsys);
+$bugapi = new BugAPI();
 $bugapi->set('bugid',          $input->in['bugid']);
 $bugapi->set_condition();
 $bugapi->dorelations = array();
@@ -144,7 +144,7 @@ if ($_POST['do'] == 'update')
                        $commenttext = $input->in['comment'];
                }
                
-               $comment = new CommentAPI($bugsys);
+               $comment = new CommentAPI();
                $comment->set('bugid',          $input->in['bugid']);
                $comment->set('userid',         bugdar::$userinfo['userid']);
                $comment->set('comment',        $commenttext);