Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Rely on default Plack staff resolver by default in app.psgi

  • Loading branch information...
commit 012e6bde9fa7c34f68be123f52abb4e17cab96f5 1 parent 4d45603
@ctfliblime ctfliblime authored
Showing with 1 addition and 6 deletions.
  1. +1 −6 app.psgi
View
7 app.psgi
@@ -7,17 +7,12 @@ use Koha::Plack::Util;
my $app = Plack::App::CGIBin->new(root => $ENV{PERL5LIB})->to_app;
-sub is_staff {
- my $hostname = Koha::Plack::Util::GetCanonicalHostname(shift);
- return $hostname =~ /-staff\./;
-}
-
builder {
enable 'Deflater';
enable 'Static', path => qr{^/opac-tmpl/}, root => 'koha-tmpl/';
enable 'Static', path => qr{^/intranet-tmpl/}, root => 'koha-tmpl/';
enable '+Koha::Plack::Localize';
- enable '+Koha::Plack::Rewrite', staff_resolver => \&is_staff;
+ enable '+Koha::Plack::Rewrite';
enable '+Koha::Plack::ScrubStatus';
mount '/' => $app;
Please sign in to comment.
Something went wrong with that request. Please try again.