diff options
author | Dylan William Hardison <dylan@hardison.net> | 2017-04-26 21:43:41 +0200 |
---|---|---|
committer | Dylan William Hardison <dylan@hardison.net> | 2017-04-26 21:43:41 +0200 |
commit | 5326aadb5bdd8c0818d74cbf88ea8bad7d6da1af (patch) | |
tree | a3a88d6acfd1df8d580b05bb64235e30f4151833 | |
parent | c82963a57cf97932870e11de8cf2a6205132b954 (diff) | |
download | bugzilla-5326aadb5bdd8c0818d74cbf88ea8bad7d6da1af.tar.gz bugzilla-5326aadb5bdd8c0818d74cbf88ea8bad7d6da1af.tar.xz |
use parent rather than base to avoid a bug in base.pm
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.
-rw-r--r-- | Bugzilla/Template.pm | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |