From: mkanat%bugzilla.org <> Date: Fri, 24 Aug 2007 02:36:22 +0000 (+0000) Subject: Bug 390442: Bugzilla/Template.pm was failing on perl 5.9.5 with "Not a subroutine... X-Git-Tag: bugzilla-3.0.2~20 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4e641c168273f4753b63df9546450e2f788997b3;p=thirdparty%2Fbugzilla.git Bug 390442: Bugzilla/Template.pm was failing on perl 5.9.5 with "Not a subroutine reference" Patch By Max Kanat-Alexander r=LpSolit, a=mkanat --- diff --git a/Bugzilla/Template.pm b/Bugzilla/Template.pm index 0be70cdc62..c05500ede4 100644 --- a/Bugzilla/Template.pm +++ b/Bugzilla/Template.pm @@ -62,7 +62,7 @@ sub _load_constants { foreach my $constant (@Bugzilla::Constants::EXPORT, @Bugzilla::Constants::EXPORT_OK) { - if (defined &{$Bugzilla::Constants::{$constant}}) { + if (defined Bugzilla::Constants->$constant) { # Constants can be lists, and we can't know whether we're # getting a scalar or a list in advance, since they come to us # as the return value of a function call, so we have to