Show
Ignore:
Timestamp:
04/11/08 19:19:30 (19 months ago)
Author:
bchoate
Message:

Changes to store binary state to junk_status column. BugId:79280

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-34/lib/MT/CMS/TrackBack.pm

    r1823 r1866  
    152152    ## entries. 
    153153    my %arg; 
     154    require MT::TBPing; 
    154155    if ( ( $app->param('tab') || '' ) eq 'junk' ) { 
    155156        $app->param( 'filter',     'junk_status' ); 
    156         $app->param( 'filter_val', '-1' ); 
     157        $app->param( 'filter_val', MT::TBPing::JUNK() ); 
    157158        $param{filter_special} = 1; 
    158159        $param{filter_phrase}  = $app->translate('Junk TrackBacks'); 
    159160    } 
    160161    else { 
    161         $terms{'junk_status'} = [ 0, 1 ]; 
     162        $terms{'junk_status'} = MT::TBPing::NOT_JUNK(); 
    162163    } 
    163164 
     
    473474    elsif ( $status eq 'moderate' ) { 
    474475        $obj->moderate; 
    475         $obj->junk_status(0); 
    476476    } 
    477477    elsif ( $status eq 'junk' ) {