|
Lines 24-32
use Mojo::Base 'Mojolicious';
Link Here
|
| 24 |
use Koha::Caches; |
24 |
use Koha::Caches; |
| 25 |
use Koha::Cache::Memory::Lite; |
25 |
use Koha::Cache::Memory::Lite; |
| 26 |
|
26 |
|
|
|
27 |
use C4::Context; |
| 28 |
|
| 27 |
sub startup { |
29 |
sub startup { |
| 28 |
my ($self) = @_; |
30 |
my ($self) = @_; |
| 29 |
|
31 |
|
|
|
32 |
my $config = C4::Context->config('mojolicious'); |
| 33 |
if ($config && $config->{intranet} && $config->{intranet}->{config}) { |
| 34 |
$self->config($config->{intranet}->{config}); |
| 35 |
} |
| 36 |
|
| 30 |
push @{$self->plugins->namespaces}, 'Koha::App::Plugin'; |
37 |
push @{$self->plugins->namespaces}, 'Koha::App::Plugin'; |
| 31 |
push @{$self->static->paths}, $self->home->rel_file('koha-tmpl'); |
38 |
push @{$self->static->paths}, $self->home->rel_file('koha-tmpl'); |
| 32 |
|
39 |
|