Changeset 1725

Show
Ignore:
Timestamp:
04/02/08 19:01:50 (19 months ago)
Author:
bchoate
Message:

Set variable for template identifier to simplify default templates. BugId:69522

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

Legend:

Unmodified
Added
Removed
  • branches/release-33/lib/MT/Template.pm

    r1658 r1725  
    261261        $ctx->var( 'page_columns', $columns ) if $columns; 
    262262    } 
     263    $ctx->var( $tmpl->identifier, 1 ) if defined $tmpl->identifier; 
    263264 
    264265    $timer->pause_partial if $timer; 
  • branches/release-33/lib/MT/Template/ContextHandlers.pm

    r1677 r1725  
    23772377            return $ctx->error($builder->errstr); 
    23782378        } 
     2379        $tmpl->tokens( $tokens ); 
    23792380 
    23802381        $req->stash($stash_id, [ $tmpl, $tokens ]); 
     
    23822383 
    23832384    # Build the included template against the includ*ing* template's context. 
    2384     my $ret = $builder->build($ctx, $tokens, $cond); 
     2385    my $ret = $tmpl->build( $ctx, $cond ); 
    23852386    if (!defined $ret) { 
    23862387        $req->cache('build_template', $tmpl) if $tmpl;