Changeset 1913
- Timestamp:
- 04/15/08 08:32:02 (22 months ago)
- Files:
-
- 1 modified
-
branches/release-35/lib/MT/CMS/Template.pm (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
branches/release-35/lib/MT/CMS/Template.pm
r1891 r1913 147 147 } 148 148 ); 149 # Try to compile template module if using MTInclude in this template. 150 $other->compile; 151 if ( $other->{errors} && @{ $other->{errors} } ) { 152 $param->{error} = $app->translate( 153 "One or more errors were found in included template module (".$other->name.")."); 154 $param->{error} .= "<ul>\n"; 155 foreach my $err ( @{ $other->{errors} } ) { 156 $param->{error} .= "<li>" 157 . MT::Util::encode_html( $err->{message} ) 158 . "</li>\n"; 159 } 160 $param->{error} .= "</ul>\n"; 161 } 149 162 } 150 163 else {
