Skip to content

Commit

Permalink
Merge branch 'byrnereese-lh-912-improve-errmsg-comm-mod' into melody-…
Browse files Browse the repository at this point in the history
…1.0.1

* byrnereese-lh-912-improve-errmsg-comm-mod:
  [#912 state:resolved] Improved error message for handling junk comments that have been deleted or do not exist.
  [#912 state:resolved] Improved error message for moderating comments that have been deleted or do not exist.
  • Loading branch information
jayallen committed May 16, 2011
2 parents 8017f04 + 9a2f18a commit d70691b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/MT/CMS/Comment.pm
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down Expand Up @@ -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 {
Expand Down

0 comments on commit d70691b

Please sign in to comment.