summaryrefslogtreecommitdiff
path: root/rt/etc/upgrade/4.0.4/content
diff options
context:
space:
mode:
Diffstat (limited to 'rt/etc/upgrade/4.0.4/content')
-rw-r--r--rt/etc/upgrade/4.0.4/content7
1 files changed, 5 insertions, 2 deletions
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;
}
},
);