]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
use parent rather than base to avoid a bug in base.pm
authorDylan William Hardison <dylan@hardison.net>
Wed, 26 Apr 2017 19:43:41 +0000 (15:43 -0400)
committerDylan William Hardison <dylan@hardison.net>
Wed, 26 Apr 2017 19:43:41 +0000 (15:43 -0400)
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

index cb10544f102f3a7f31fa5b6b23f698de9b6fae5b..5a14a8e85c870770aaff4c0495f6795e3a782206 100644 (file)
@@ -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];