Change API->delete() to remove()
authorRobert Sesek <rsesek@bluestatic.org>
Sat, 6 Sep 2008 15:37:28 +0000 (11:37 -0400)
committerRobert Sesek <rsesek@bluestatic.org>
Sat, 6 Sep 2008 15:37:28 +0000 (11:37 -0400)
attachment.php

index c96972aefaf82911bca78a892b2d7d26fdbc4650..8bdf3452dbea8f47ba0dea265509232d3e38d50a 100755 (executable)
@@ -212,7 +212,7 @@ if ($_POST['do'] == 'update')
                        $message->errorPermission();
                }
                
-               $attachapi->delete();
+               $attachapi->remove();
                
                $message->redirect(T('The attachment was successfully deleted.'), "showreport.php?bugid=$bug[bugid]");
        }