X-Git-Url: http://git.freeside.biz/gitweb/?p=freeside.git;a=blobdiff_plain;f=rt%2Fetc%2Fupgrade%2F4.0.4%2Fcontent;h=477028995f4f1f3fd668da85e50c0e26e92444f3;hp=fdfcb3e273a0ddb609f081c5ecc42078c0edbfb9;hb=9aee669886202be7035e6c6049fc71bc99dd3013;hpb=a6fe07e49e3fc12169e801b1ed6874c3a5bd8500 diff --git a/rt/etc/upgrade/4.0.4/content b/rt/etc/upgrade/4.0.4/content index fdfcb3e27..477028995 100644 --- a/rt/etc/upgrade/4.0.4/content +++ b/rt/etc/upgrade/4.0.4/content @@ -1,4 +1,7 @@ -@Initial = ( +use strict; +use warnings; + +our @Initial = ( sub { use strict; my $templates = RT::Templates->new(RT->SystemUser); @@ -9,7 +12,7 @@ ); while (my $template = $templates->Next) { my ($status, $msg) = $template->SetType('Perl'); - $RT::Logger->warning( "Couldn't change Type of Template #" . $template->Id . ": $msg" ) unless $status; + RT->Logger->warning( "Couldn't change Type of Template #" . $template->Id . ": $msg" ) unless $status; } }, );