Skip to content

Commit

Permalink
[#353 state:resolved] Promoted MT::App::errtrans to its parent clas…
Browse files Browse the repository at this point in the history
…s (the root `MT` class) and aliased it to the identical `MT::trans_error()` method to eliminate the confusion of having two identical methods with two different names in two different classes. Phew!
  • Loading branch information
jayallen committed Jul 27, 2010
1 parent 7addf97 commit 322c2a6
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 6 deletions.
3 changes: 2 additions & 1 deletion lib/MT.pm
Original file line number Diff line number Diff line change
Expand Up @@ -1999,8 +1999,9 @@ sub supported_languages {
# For your convenience
sub trans_error {
my $app = shift;
$app->error( $app->translate(@_) );
return $app->error( $app->translate(@_) );
}
*errtrans = \&trans_error;

sub all_text_filters {
unless (%Text_filters) {
Expand Down
5 changes: 0 additions & 5 deletions lib/MT/App.pm
Original file line number Diff line number Diff line change
Expand Up @@ -3720,11 +3720,6 @@ sub document_root {
return $cwd;
}

sub errtrans {
my $app = shift;
return $app->error( $app->translate(@_) );
}

sub DESTROY {
## Destroy the Request object, which is used for caching
## per-request data. We have to do this manually, because in
Expand Down

0 comments on commit 322c2a6

Please sign in to comment.