Changeset 1394

Show
Ignore:
Timestamp:
02/22/08 01:25:26 (7 months ago)
Author:
bsmith
Message:

adding variables to standardize amongst other templates

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/release-30/lib/MT/App/Comments.pm

    r1186 r1394  
    994994        my $ctx = $tmpl->context; 
    995995        $tmpl->param( 
    996             { 'body_class' => 'mt-comment-confirmation', 'comment_link' => $comment_link } ); 
     996            { 'body_class' => 'mt-comment-confirmation', 'comment_link' => $comment_link, 'comment_response_template' => 1, 'system_template' => 1 } ); 
    997997        $ctx->stash('entry', $entry); 
    998998        $ctx->stash('comment', $comment); 
     
    15871587        if ( $err eq 'pending' ) { 
    15881588            $tmpl->context($ctx); 
    1589             $tmpl->param('body_class', 'mt-comment-pending'); 
     1589            $tmpl->param( 
     1590                { 'body_class' => 'mt-comment-pending', 'comment_response_template' => 1, 'system_template' => 1 } ); 
    15901591        } 
    15911592        else { 
    15921593            $ctx->stash( 'error_message', $err ); 
    15931594            $tmpl->context($ctx); 
    1594             $tmpl->param('body_class', 'mt-comment-error'); 
     1595            $tmpl->param( 
     1596                { 'body_class' => 'mt-comment-error', 'comment_response_template' => 1, 'system_template' => 1 } ); 
    15951597        } 
    15961598    } 
     
    16081610        } 
    16091611        $tmpl->context($ctx); 
    1610         $tmpl->param('body_class', 'mt-comment-preview'); 
     1612        $tmpl->param( 
     1613            { 'body_class' => 'mt-comment-preview', 'comment_preview_template' => 1, 'system_template' => 1 } ); 
    16111614    } 
    16121615    my %cond; 
  • branches/release-30/lib/MT/WeblogPublisher.pm

    r1379 r1394  
    234234            entry_based     => 1, 
    235235            template_params => { 
     236                entry_archive     => 1, 
    236237                main_template     => 1, 
    237238                archive_template  => 1,