From 8875213834749f788492a871c5492987bdf50004 Mon Sep 17 00:00:00 2001 From: Byrne Reese Date: Fri, 13 May 2011 11:43:20 -0700 Subject: [PATCH 1/2] [#912 state:resolved] Improved error message for moderating comments that have been deleted or do not exist. --- lib/MT/CMS/Comment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MT/CMS/Comment.pm b/lib/MT/CMS/Comment.pm index 01094759e..7dc0f6fd4 100644 --- a/lib/MT/CMS/Comment.pm +++ b/lib/MT/CMS/Comment.pm @@ -1563,7 +1563,7 @@ sub set_item_visible $app->return_args($return_args); } ## end if ( my $obj = $class->load...) else { - return $app->errtrans("Invalid request."); + return $app->error( $app->translate("[_1] does not exist.",MT->model($type)->class_label) ); } } ## end if ( scalar @obj_ids ==...) else { From 9a2f18a20f90f800dd7bc531ec2b2795c06c9f7a Mon Sep 17 00:00:00 2001 From: Byrne Reese Date: Fri, 13 May 2011 11:46:26 -0700 Subject: [PATCH 2/2] [#912 state:resolved] Improved error message for handling junk comments that have been deleted or do not exist. --- lib/MT/CMS/Comment.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/MT/CMS/Comment.pm b/lib/MT/CMS/Comment.pm index 7dc0f6fd4..feefc6079 100644 --- a/lib/MT/CMS/Comment.pm +++ b/lib/MT/CMS/Comment.pm @@ -976,7 +976,7 @@ sub handle_junk { $app->return_args($return_args); } ## end if ( my $obj = $class->load...) else { - return $app->errtrans("Invalid request."); + return $app->error( $app->translate("[_1] does not exist.",MT->model($type)->class_label) ); } } ## end if ( scalar @obj_ids ==...) else {