X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=blobdiff_plain;f=tools%2Ftools-home.pl;h=055f7f458baa21e07147f70b4245857db1463e3b;hb=4dea59847aca42dfa0893bc1f13ce05dc3011aaf;hp=70283585475739d58509752b74befadd4896ba1d;hpb=5707371eda0e3e52d0822bdb4c9b15dc091b0bc8;p=koha_fer diff --git a/tools/tools-home.pl b/tools/tools-home.pl index 7028358547..055f7f458b 100755 --- a/tools/tools-home.pl +++ b/tools/tools-home.pl @@ -21,6 +21,8 @@ use warnings; use CGI; use C4::Auth; use C4::Output; +use C4::Review qw/numberofreviews/; +use C4::Tags qw/get_count_by_tag_status/; my $query = new CGI; my ( $template, $loggedinuser, $cookie ) = get_template_and_user( @@ -34,4 +36,12 @@ my ( $template, $loggedinuser, $cookie ) = get_template_and_user( } ); +my $pendingcomments = numberofreviews(0); +my $pendingtags = get_count_by_tag_status(0); + +$template->param( + pendingcomments => $pendingcomments, + pendingtags => $pendingtags +); + output_html_with_http_headers $query, $cookie, $template->output;