Bug 36206: (QA follow-up) Tidy admin-home.pl

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Katrin Fischer <katrin.fischer@bsz-bw.de>
This commit is contained in:
Kyle Hall 2024-03-15 14:19:36 -04:00 committed by Katrin Fischer
parent 316e39ff36
commit 3becfe41d2
Signed by: kfischer
GPG key ID: 0EF6E2C03357A834

View file

@ -24,24 +24,26 @@ use Koha::Plugins;
my $query = CGI->new;
my $mana_url = C4::Context->config('mana_config');
my $mana_url = C4::Context->config('mana_config');
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
{
template_name => "admin/admin-home.tt",
query => $query,
type => "intranet",
flagsrequired => { parameters => '*' },
template_name => "admin/admin-home.tt",
query => $query,
type => "intranet",
flagsrequired => { parameters => '*' },
}
);
if ( C4::Context->config('enable_plugins') ) {
my @admin_plugins = Koha::Plugins->new()->GetPlugins({
method => 'admin',
});
my @admin_plugins = Koha::Plugins->new()->GetPlugins(
{
method => 'admin',
}
);
$template->param( admin_plugins => \@admin_plugins );
}
$template->param( mana_url => $mana_url, );
$template->param( mana_url => $mana_url, );
output_html_with_http_headers $query, $cookie, $template->output;