X-Git-Url: http://git.rot13.org/?a=blobdiff_plain;f=mainpage.pl;h=8116eebdb0bee5bf7ecaa541cf7ac0b2f451cdc2;hb=4dc05803d5ff64494ca4924078f10dac23814455;hp=057cc7b8746e6e1d01b38ef0a3e55742f62cfcc1;hpb=1ca8a9ceb8b347ffe2bea65f6e5484fb20da9354;p=koha.git diff --git a/mainpage.pl b/mainpage.pl index 057cc7b874..8116eebdb0 100755 --- a/mainpage.pl +++ b/mainpage.pl @@ -17,7 +17,6 @@ # use strict; -require Exporter; use CGI; use C4::Output; @@ -29,8 +28,10 @@ my $query = new CGI; my $authtypes = getauthtypes; my @authtypesloop; -foreach my $thisauthtype ( sort { $authtypes->{$a} <=> $authtypes->{$b} } - keys %$authtypes ) +foreach my $thisauthtype ( + sort { $authtypes->{$a} <=> $authtypes->{$b} } + keys %$authtypes + ) { my %row = ( value => $thisauthtype, @@ -46,9 +47,7 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( type => "intranet", authnotrequired => 0, flagsrequired => { - catalogue => 1, - circulate => 1, - borrowers => 1, + catalogue => 1, }, } ); @@ -60,7 +59,7 @@ $template->param( authtypesloop => \@authtypesloop ); -my $all_koha_news = &GetNewsToDisplay("koha"); +my $all_koha_news = &GetNewsToDisplay("koha"); my $koha_news_count = scalar @$all_koha_news; $template->param(