@@ -, +, @@ --- Koha/App/Intranet.pm | 7 +++++++ Koha/App/Opac.pm | 7 +++++++ etc/koha-conf.xml | 19 +++++++++++++++++++ 3 files changed, 33 insertions(+) --- a/Koha/App/Intranet.pm +++ a/Koha/App/Intranet.pm @@ -24,9 +24,16 @@ use Mojo::Base 'Mojolicious'; use Koha::Caches; use Koha::Cache::Memory::Lite; +use C4::Context; + sub startup { my ($self) = @_; + my $config = C4::Context->config('mojolicious'); + if ($config && $config->{intranet} && $config->{intranet}->{config}) { + $self->config($config->{intranet}->{config}); + } + push @{$self->plugins->namespaces}, 'Koha::App::Plugin'; push @{$self->static->paths}, $self->home->rel_file('koha-tmpl'); --- a/Koha/App/Opac.pm +++ a/Koha/App/Opac.pm @@ -24,9 +24,16 @@ use Mojo::Base 'Mojolicious'; use Koha::Caches; use Koha::Cache::Memory::Lite; +use C4::Context; + sub startup { my ($self) = @_; + my $config = C4::Context->config('mojolicious'); + if ($config && $config->{opac} && $config->{opac}->{config}) { + $self->config($config->{opac}->{config}); + } + push @{$self->plugins->namespaces}, 'Koha::App::Plugin'; push @{$self->static->paths}, $self->home->rel_file('koha-tmpl'); --- a/etc/koha-conf.xml +++ a/etc/koha-conf.xml @@ -270,5 +270,24 @@ __PAZPAR2_TOGGLE_XML_POST__ __SMTP_DEBUG__ + + + + + + http://127.0.0.1:8080 + + + + + + + + http://127.0.0.1:8081 + + + + + --