From 5326aadb5bdd8c0818d74cbf88ea8bad7d6da1af Mon Sep 17 00:00:00 2001 From: Dylan William Hardison Date: Wed, 26 Apr 2017 15:43:41 -0400 Subject: use parent rather than base to avoid a bug in base.pm MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit from perldoc base: "base" employs some heuristics to determine if a module has already been loaded, if it has it doesn’t try again. If "base" tries to "require" the module it will not die if it cannot find the module’s file, but will die on any other error. After all this, should your base class be empty, containing no symbols, it will die. --- Bugzilla/Template.pm | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Bugzilla/Template.pm') diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index cb10544f1..5a14a8e85 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -41,7 +41,7 @@ use List::MoreUtils qw(firstidx); use Scalar::Util qw(blessed); use JSON::XS qw(encode_json); -use base qw(Template); +use parent qw(Template); use constant FORMAT_TRIPLE => '%19s|%-28s|%-28s'; use constant FORMAT_3_SIZE => [19,28,28]; -- cgit v1.2.3-24-g4f1b