]> git.ipfire.org Git - thirdparty/bugzilla.git/commitdiff
Bug 829939: Only build default_authorizer on request
authorFrédéric Buclin <LpSolit@gmail.com>
Mon, 14 Jan 2013 17:50:53 +0000 (18:50 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 14 Jan 2013 17:50:53 +0000 (18:50 +0100)
r=glob a=LpSolit

Bugzilla/Template.pm

index 3e883c790804057c626229e8f6e41fc3c9507cfc..b93e1bfaea1848a7492a4a0dfe990627e89a5231 100644 (file)
@@ -982,7 +982,7 @@ sub create {
                 }
                 return \@optional;
             },
-            'default_authorizer' => new Bugzilla::Auth(),
+            'default_authorizer' => sub { return Bugzilla::Auth->new() },
         },
     };
     # Use a per-process provider to cache compiled templates in memory across