Lines 27-50
my $use_list = {
Link Here
|
27 |
|
27 |
|
28 |
}; |
28 |
}; |
29 |
|
29 |
|
30 |
if(can_load( modules => { Plack::Middleware::Debug => undef} ) && $ENV{KOHA_DEBUG}){ |
|
|
31 |
my $panels = Plack::Middleware::Debug->default_panels; |
32 |
} |
33 |
|
34 |
C4::Context->disable_syspref_cache(); |
30 |
C4::Context->disable_syspref_cache(); |
35 |
|
31 |
|
36 |
my $intra=Plack::App::CGIBin->new(root => "__INTRANET_CGI_DIR__" ); |
32 |
my $intra=Plack::App::CGIBin->new(root => "__INTRANET_CGI_DIR__" ); |
37 |
|
33 |
|
38 |
my $opac = Plack::App::CGIBin->new(root => "__OPAC_CGI_DIR__"); |
34 |
my $opac = Plack::App::CGIBin->new(root => "__OPAC_CGI_DIR__"); |
39 |
builder { |
|
|
40 |
enable_if{ |
41 |
$ENV{KOHA_DEBUG} |
42 |
} 'Debug', panels => [[ 'DBITrace', level => 1 ], @$panels ]; |
43 |
|
35 |
|
44 |
enable "Plack::Middleware::Static"; |
36 |
if(can_load( modules => { Plack::Middleware::Debug => undef} ) && $ENV{KOHA_DEBUG}){ |
|
|
37 |
|
38 |
my $panels = Plack::Middleware::Debug->default_panels; |
45 |
|
39 |
|
46 |
enable 'StackTrace'; |
40 |
builder { |
|
|
41 |
enable 'Debug', panels => [[ 'DBITrace', level => 1 ], @$panels ]; |
47 |
|
42 |
|
48 |
mount '/cgi-bin/koha/' => $intra; |
43 |
enable "Plack::Middleware::Static"; |
49 |
mount '/cgi-bin/koha/' => $opac; |
44 |
|
50 |
}; |
45 |
enable 'StackTrace'; |
|
|
46 |
|
47 |
mount '/cgi-bin/koha/' => $intra; |
48 |
mount '/cgi-bin/koha/' => $opac; |
49 |
}; |
50 |
} |
51 |
|
52 |
else { |
53 |
builder { |
54 |
enable "Plack::Middleware::Static"; |
55 |
|
56 |
enable 'StackTrace'; |
57 |
|
58 |
mount '/cgi-bin/koha/' => $intra |
59 |
mount '/cgi-bin/koha/' => $opac; |
60 |
}; |
61 |
} |
51 |
- |
|
|