Changeset 864

Show
Ignore:
Timestamp:
12/09/06 01:55:02 (2 years ago)
Author:
bchoate
Message:

Preserve Perl error variable value for translate call. BugId: 44751

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/wheeljack/lib/MT/WeblogPublisher.pm

    r788 r864  
    823823                    or die $mt->errstr; 
    824824            }; 
    825             if ($@) { 
     825            if (my $err = $@) { 
    826826                # a fatal error occured while processing the rebuild 
    827827                # step. LOG the error and revert the entry/entries: 
    828828                require MT::Log; 
    829829                $mt->log({ 
    830                     message => $mt->translate("An error occurred while rebuilding to publish scheduled posts: [_1]", $@), 
     830                    message => $mt->translate("An error occurred while rebuilding to publish scheduled posts: [_1]", $err), 
    831831                    class => "system", 
    832832                    blog_id => $blog->id,