summaryrefslogtreecommitdiffstats
path: root/extensions/BMO/Extension.pm
diff options
context:
space:
mode:
Diffstat (limited to 'extensions/BMO/Extension.pm')
-rw-r--r--extensions/BMO/Extension.pm8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/BMO/Extension.pm b/extensions/BMO/Extension.pm
index 08a7beb90..58d4b02cd 100644
--- a/extensions/BMO/Extension.pm
+++ b/extensions/BMO/Extension.pm
@@ -1671,10 +1671,10 @@ sub psgi_builder {
my ($self, $args) = @_;
my $mount = $args->{mount};
- my $ses_index = Plack::Builder::builder {
+ my $ses_index = Plack::Builder::builder(sub {
my $auth_user = Bugzilla->localconfig->{ses_username};
my $auth_pass = Bugzilla->localconfig->{ses_password};
- Plack::Builder::enable "Auth::Basic", authenticator => sub {
+ Plack::Builder::enable("Auth::Basic", authenticator => sub {
my ($username, $password, $env) = @_;
return ( $auth_user
&& $auth_pass
@@ -1682,9 +1682,9 @@ sub psgi_builder {
&& $password
&& $username eq $auth_user
&& $password eq $auth_pass );
- };
+ });
compile_cgi("ses/index.cgi");
- };
+ });
$mount->{'ses/index.cgi'} = $ses_index;
}