Changeset 2642

Show
Ignore:
Timestamp:
06/26/08 01:43:15 (20 months ago)
Author:
auno
Message:

Fixed to change Spam to Unapproved status properly and also fixed status change error. BugzID:80324

Location:
branches/release-40/lib/MT
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/lib/MT/CMS/Comment.pm

    r2638 r2642  
    1414    my $blog = $app->blog; 
    1515    my $type = $q->param('_type'); 
    16  
     16    use Data::Dumper; 
     17    print STDERR "########".Dumper(\$param); 
    1718    if ($id) { 
    1819        $param->{nav_comments} = 1; 
     
    14891490                    return $eh->error( MT->translate( "Publish failed: [_1]", $app->errstr ) ); 
    14901491                } 
     1492                1; 
    14911493            } 
    14921494        ); 
  • branches/release-40/lib/MT/Comment.pm

    r2545 r2642  
    193193    my ($comment) = @_; 
    194194    $comment->visible(0); 
     195    $comment->junk_status(NOT_JUNK); 
    195196} 
    196197