Skip to content

Commit

Permalink
Item11458: Oops, scope error, thank Paul for spotting
Browse files Browse the repository at this point in the history
git-svn-id: http://svn.foswiki.org/trunk@13813 0b4bb1d4-4e5a-0410-9cc4-b2b747904278
  • Loading branch information
OlivierRaginel authored and OlivierRaginel committed Jan 24, 2012
1 parent 95e2dce commit 51fe4c3
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/lib/Foswiki/Templates.pm
Original file line number Diff line number Diff line change
Expand Up @@ -611,12 +611,12 @@ sub saveTemplateToCache {
my $filename = Foswiki::Sandbox::untaintUnchecked(
$tmpl_cachedir . '/' . $name . '__' . $skins . '__' . $web . '.tmpl' );

unless ( open( my $file, '>', $filename ) ) {
open( my $file, '>', $filename ) or do {
die "Can't create file $filename - $!\n" if DEBUG;
print STDERR "Can't create file $filename - $!\n";

return;
}
};
print $file $tmplText;
close($file);
}
Expand Down

0 comments on commit 51fe4c3

Please sign in to comment.