Changeset 2110

Show
Ignore:
Timestamp:
04/26/08 00:10:21 (3 months ago)
Author:
bchoate
Message:

Fix for template edit links for global templates. BugId:79513

Files:

Legend:

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

    r2096 r2110  
    1818    # FIXME: enumeration of types 
    1919    unless ( $blog_id ) { 
    20         my $type = $q->param('type')
     20        my $type = $q->param('type') || ( $obj ? $obj->type : undef )
    2121        return $app->return_to_dashboard( redirect => 1 ) 
    2222            unless $type eq 'module' 
     23                || $type eq 'custom' 
    2324                || $type eq 'widget' 
    2425                || $type eq 'widgetset';