Changeset 1774

Show
Ignore:
Timestamp:
04/04/08 21:02:53 (5 months ago)
Author:
bchoate
Message:

Disable SSI for system templates. BugId:75099

Files:

Legend:

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

    r1772 r1774  
    23152315    my $use_ssi = $blog && $blog->include_system 
    23162316        && ($arg->{ssi} || $tmpl->include_with_ssi) ? 1 : 0; 
     2317    if ($use_ssi) { 
     2318        # disable SSI for templates that are system templates; 
     2319        # easiest way to determine this is from the variable 
     2320        # space setting. 
     2321        $use_ssi = 0 if $ctx->var('system_template'); 
     2322    } 
    23172323 
    23182324    # Try to read from cache