]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 390442: Bugzilla/Template.pm was failing on perl 5.9.5 with "Not a subroutine...
authormkanat%bugzilla.org <>
Fri, 24 Aug 2007 02:36:22 +0000 (02:36 +0000)
committermkanat%bugzilla.org <>
Fri, 24 Aug 2007 02:36:22 +0000 (02:36 +0000)
Patch By Max Kanat-Alexander <mkanat@bugzilla.org> r=LpSolit, a=mkanat

Bugzilla/Template.pm

index 0be70cdc62e05a7e43876b6dc6899fb48b5818f9..c05500ede4002c370231b4c81d222ccef5227fcf 100644 (file)
@@ -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