Lines 22-27
use C4::Auth qw( get_template_and_user );
Link Here
|
22 |
use C4::Output qw( output_html_with_http_headers ); |
22 |
use C4::Output qw( output_html_with_http_headers ); |
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 = CGI->new; |
27 |
my $query = CGI->new; |
27 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
28 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
Lines 36-44
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
Link Here
|
36 |
my $pendingcomments = Koha::Reviews->search_limited({ approved => 0 })->count; |
37 |
my $pendingcomments = Koha::Reviews->search_limited({ approved => 0 })->count; |
37 |
my $pendingtags = get_count_by_tag_status(0); |
38 |
my $pendingtags = get_count_by_tag_status(0); |
38 |
|
39 |
|
|
|
40 |
my $pages = Koha::CmsPages->search({ location => [ 1, { '=', undef } ] }, { order_by => 'sortorder' }); |
41 |
|
39 |
$template->param( |
42 |
$template->param( |
40 |
pendingcomments => $pendingcomments, |
43 |
pendingcomments => $pendingcomments, |
41 |
pendingtags => $pendingtags |
44 |
pendingtags => $pendingtags, |
|
|
45 |
pages => $pages, |
42 |
); |
46 |
); |
43 |
|
47 |
|
44 |
if ( C4::Context->config('enable_plugins') ) { |
48 |
if ( C4::Context->config('enable_plugins') ) { |
45 |
- |
|
|