From 85de4995718b9ba86465fcc11cf117ffd7f7c58f Mon Sep 17 00:00:00 2001 From: Robert Sesek Date: Sat, 22 Jul 2006 03:10:08 +0000 Subject: [PATCH] r924: Making sure that we have an APIError() callback set --- editcomment.php | 3 +++ editreport.php | 3 +++ newreport.php | 3 +++ register.php | 3 +++ 4 files changed, 12 insertions(+) diff --git a/editcomment.php b/editcomment.php index 4a867e0..40c41fa 100644 --- a/editcomment.php +++ b/editcomment.php @@ -30,6 +30,9 @@ $focus['showreport'] = 'focus'; require_once('./global.php'); 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->set('commentid', $bugsys->in['commentid']); $commentapi->set_condition(); diff --git a/editreport.php b/editreport.php index 63de8ac..8edee83 100644 --- a/editreport.php +++ b/editreport.php @@ -29,6 +29,9 @@ require_once('./includes/class_notification.php'); require_once('./includes/api_bug.php'); require_once('./includes/api_comment.php'); +require_once('./includes/class_api_error.php'); +APIError(array(new API_Error_Handler($message), 'user_cumulative')); + $bug = $db->query_first(" SELECT bugvaluefill.*, bug.*, user.email, user.displayname, user.showemail FROM " . TABLE_PREFIX . "bug AS bug diff --git a/newreport.php b/newreport.php index 038135e..f557006 100755 --- a/newreport.php +++ b/newreport.php @@ -33,6 +33,9 @@ require_once('./includes/class_notification.php'); require_once('./includes/api_bug.php'); require_once('./includes/api_comment.php'); +require_once('./includes/class_api_error.php'); +APIError(array(new API_Error_Handler($message), 'user_cumulative')); + $bugsys->input_clean('productid', TYPE_UINT); if (!can_perform('cansubmitbugs', $bugsys->in['productid'])) { diff --git a/register.php b/register.php index 1710cd0..38a598c 100755 --- a/register.php +++ b/register.php @@ -30,6 +30,9 @@ $focus['user'] = 'focus'; require_once('./global.php'); require_once('./includes/api_user.php'); +require_once('./includes/class_api_error.php'); +APIError(array(new API_Error_Handler($message), 'user_cumulative')); + // ################################################################### if ($_POST['do'] == 'insert') -- 2.43.5