Changeset 1735

Show
Ignore:
Timestamp:
04/03/08 00:29:46 (4 months ago)
Author:
bchoate
Message:

Use available MT::Builder when it exists in the context stash.

Files:

Legend:

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

    r1725 r1735  
    232232    my $tokens = $tmpl->tokens 
    233233        or return; 
    234     my $build = MT::Builder->new; 
     234    my $build = $ctx->{__stash}{builder} || MT::Builder->new; 
    235235    if (my $blog_id = $tmpl->blog_id) { 
    236236        $ctx->stash('blog_id', $blog_id);