]> 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:52:05 +0000 (18:52 +0100)
committerFrédéric Buclin <LpSolit@gmail.com>
Mon, 14 Jan 2013 17:52:05 +0000 (18:52 +0100)
r=glob a=LpSolit

Bugzilla/Template.pm

index e5c7407b68dc8e49dd7f351386e14e47a90fa5a7..0ca79f2ed0025568ea3da97ec3cd409aad5489fb 100644 (file)
@@ -951,7 +951,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