Lines 22-27
use C4::Auth;
Link Here
|
22 |
use C4::Output; |
22 |
use C4::Output; |
23 |
use C4::Tags qw/get_count_by_tag_status/; |
23 |
use C4::Tags qw/get_count_by_tag_status/; |
24 |
use Koha::Reviews; |
24 |
use Koha::Reviews; |
|
|
25 |
use Koha::CmsPages; |
25 |
|
26 |
|
26 |
my $query = new CGI; |
27 |
my $query = new CGI; |
27 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
28 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
Lines 38-46
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Link Here
|
38 |
my $pendingcomments = Koha::Reviews->search_limited({ approved => 0 })->count; |
39 |
my $pendingcomments = Koha::Reviews->search_limited({ approved => 0 })->count; |
39 |
my $pendingtags = get_count_by_tag_status(0); |
40 |
my $pendingtags = get_count_by_tag_status(0); |
40 |
|
41 |
|
|
|
42 |
my $pages = Koha::CmsPages->search({ location => [ 1, { '=', undef } ] }, { order_by => 'sortorder' }); |
43 |
|
41 |
$template->param( |
44 |
$template->param( |
42 |
pendingcomments => $pendingcomments, |
45 |
pendingcomments => $pendingcomments, |
43 |
pendingtags => $pendingtags |
46 |
pendingtags => $pendingtags, |
|
|
47 |
pages => $pages, |
44 |
); |
48 |
); |
45 |
|
49 |
|
46 |
output_html_with_http_headers $query, $cookie, $template->output; |
50 |
output_html_with_http_headers $query, $cookie, $template->output; |
47 |
- |
|
|