Changeset 1807

Show
Ignore:
Timestamp:
04/08/08 17:29:40 (8 months ago)
Author:
bchoate
Message:

Fixes for direct calls to edit_object, list_objects. BugId:79081

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-34/lib/MT/CMS/Common.pm

    r1714 r1807  
    7171 
    7272        if ( ( $type eq 'notification' ) || ( $type eq 'banlist' ) ) { 
    73             return $app->list_objects( \%param ); 
     73            return list( $app, \%param ); 
    7474        } 
    7575        elsif ( ( $app->param('cfg_screen') || '' ) eq 'cfg_archives' ) { 
    76             return $app->cfg_archives( \%param ); 
     76            return edit( $app, \%param ); 
    7777        } 
    7878        else { 
     
    115115                    $param{ $qual . $f } = $q->param($f); 
    116116                } 
    117                 return $app->edit_object( \%param ); 
     117                return edit( $app, \%param ); 
    118118            } 
    119119        } 
     
    265265        if ( 'blog' eq $type ) { 
    266266            my $meth = $q->param('cfg_screen'); 
    267             if ( $meth && $app->can($meth) ) { 
     267            if ( $meth && $app->handlers_for_mode($meth) ) { 
    268268                $app->error( 
    269269                    $app->translate( "Save failed: [_1]", $app->errstr ) ); 
     
    271271            } 
    272272        } 
    273         return $app->edit_object( 
     273        return edit( $app, 
    274274            { 
    275275                %$param,