X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;ds=sidebyside;f=admin%2Fadmin-home.pl;h=6595841e7099198bac2780337c11bbaafaa0b3fc;hb=016105cf8c6af85e5140b9c4f10bc5986a53f4b1;hp=f6a7b23ac1f209196cf5a33cb84f2ee9a94f0521;hpb=fe26d42ada25990fb99ac5309de82810e2729deb;p=koha-ffzg.git diff --git a/admin/admin-home.pl b/admin/admin-home.pl index f6a7b23ac1..6595841e70 100755 --- a/admin/admin-home.pl +++ b/admin/admin-home.pl @@ -18,13 +18,12 @@ use Modern::Perl; use CGI qw ( -utf8 ); -use C4::Auth; -use C4::Output; +use C4::Auth qw( get_template_and_user ); +use C4::Output qw( output_html_with_http_headers ); use Koha::Plugins; -my $query = new CGI; +my $query = CGI->new; -my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins"); my $mana_url = C4::Context->config('mana_config'); my ( $template, $loggedinuser, $cookie ) = get_template_and_user( @@ -32,13 +31,10 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( template_name => "admin/admin-home.tt", query => $query, type => "intranet", - authnotrequired => 0, flagsrequired => { parameters => '*' }, - debug => 1, } ); -$template->param( plugins_enabled => $plugins_enabled, ); $template->param( mana_url => $mana_url, ); output_html_with_http_headers $query, $cookie, $template->output;