summaryrefslogtreecommitdiffstats
path: root/template/en/default/extensions
diff options
context:
space:
mode:
authorFrédéric Buclin <LpSolit@gmail.com>2014-08-13 12:43:11 +0200
committerFrédéric Buclin <LpSolit@gmail.com>2014-08-13 12:43:11 +0200
commit9f3d18d43e3fe4e6987fb4dd09a8760560372dbf (patch)
treebf64b06312ad9d2a4f590c414ecc28c4f8e20054 /template/en/default/extensions
parentc19dc4ffe98074bedb780652af581a1f0edb3b2d (diff)
downloadbugzilla-9f3d18d43e3fe4e6987fb4dd09a8760560372dbf.tar.gz
bugzilla-9f3d18d43e3fe4e6987fb4dd09a8760560372dbf.tar.xz
Bug 996893: Perl 5.18 and newer throw tons of warnings about deprecated modules
r=dkl a=sgreen
Diffstat (limited to 'template/en/default/extensions')
-rw-r--r--template/en/default/extensions/config.pm.tmpl1
-rw-r--r--template/en/default/extensions/extension.pm.tmpl2
-rw-r--r--template/en/default/extensions/util.pm.tmpl2
3 files changed, 5 insertions, 0 deletions
diff --git a/template/en/default/extensions/config.pm.tmpl b/template/en/default/extensions/config.pm.tmpl
index 79fbb995c..68ed260c1 100644
--- a/template/en/default/extensions/config.pm.tmpl
+++ b/template/en/default/extensions/config.pm.tmpl
@@ -16,6 +16,7 @@ package Bugzilla::Extension::[% name %];
use 5.10.1;
use strict;
+use warnings;
use constant NAME => '[% name %]';
diff --git a/template/en/default/extensions/extension.pm.tmpl b/template/en/default/extensions/extension.pm.tmpl
index 637dfdd28..823440421 100644
--- a/template/en/default/extensions/extension.pm.tmpl
+++ b/template/en/default/extensions/extension.pm.tmpl
@@ -16,6 +16,8 @@ package Bugzilla::Extension::[% name %];
use 5.10.1;
use strict;
+use warnings;
+
use parent qw(Bugzilla::Extension);
# This code for this is in [% path %]/lib/Util.pm
diff --git a/template/en/default/extensions/util.pm.tmpl b/template/en/default/extensions/util.pm.tmpl
index a5fbde04d..3baab57fd 100644
--- a/template/en/default/extensions/util.pm.tmpl
+++ b/template/en/default/extensions/util.pm.tmpl
@@ -16,6 +16,8 @@ package Bugzilla::Extension::[% name %]::Util;
use 5.10.1;
use strict;
+use warnings;
+
use parent qw(Exporter);
our @EXPORT = qw(