r490: Removing unneeded logging calls
authorRobert Sesek <rsesek@bluestatic.org>
Tue, 4 Oct 2005 03:29:01 +0000 (03:29 +0000)
committerRobert Sesek <rsesek@bluestatic.org>
Tue, 4 Oct 2005 03:29:01 +0000 (03:29 +0000)
attachment.php
newcomment.php

index c83e7b8cbbe7786eff9f306a5da24a234e76908b..d1fa482d67d89c3d4e9b40d73cfe34241e9f459e 100755 (executable)
@@ -123,11 +123,6 @@ if ($_POST['do'] == 'insert')
                )"
        );
        
-       $attachmentid = $db->insert_id();
-       $log->arguments = array($FILE['name'], $attachmentid);
-       $log->allowempty = true;
-       $log->log();
-       
        // mark obsoletes
        $obsoletes = $_POST['obsoletes'];
        if (count($obsoletes) > 0)
@@ -158,12 +153,6 @@ if ($_POST['do'] == 'insert')
                                '" . nl2br($bugsys->in['comment_parsed']) . "'
                        )"
                );
-               
-               $commentid = $db->insert_id();
-               
-               $log->arguments = array($attachmentid, $commentid);
-               $log->allowempty = true;
-               $log->log();
        }
        
        // update the last post data
index 7ef172f2be8920c6fe8ef414d79642d3e146c57b..5d10918c1e16f4b40435ccbcda113b787e85f3da 100644 (file)
@@ -52,13 +52,6 @@ if ($_POST['do'] == 'insert')
                        hiddenlastpostby = " . $bugsys->userinfo['userid'] . "
                WHERE bugid = " . intval($bugsys->in['bugid'])
        );
-       
-       // setup logging
-       require_once('./includes/class_history.php');
-       $log = new History();
-       $log->bugid = $bugsys->in['bugid'];
-       $log->arguments = array($commentid);
-       $log->log();
 
        $message->redirect($lang->string('Your reply has been added to the comment list.'), "showreport.php?bugid=" . intval($bugsys->in['bugid']));
 }