Changeset 1775

Show
Ignore:
Timestamp:
04/04/08 21:48:30 (4 months ago)
Author:
bchoate
Message:

Fix for editing system-wide templates (can't assume blog is available). BugId:75819

Files:

Legend:

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

    r1770 r1775  
    1515    my $can_preview = 0; 
    1616 
    17     $param->{include_system} = $blog->include_system; 
    18     $param->{include_cache} = $blog->include_cache; 
     17    if ($blog) { 
     18        # include_system/include_cache are only applicable 
     19        # to blog-level templates 
     20        $param->{include_system} = $blog->include_system; 
     21        $param->{include_cache} = $blog->include_cache; 
     22    } 
    1923 
    2024    if ($id) {