|
Lines 24-47
use Koha::Plugins;
Link Here
|
| 24 |
|
24 |
|
| 25 |
my $query = CGI->new; |
25 |
my $query = CGI->new; |
| 26 |
|
26 |
|
| 27 |
my $mana_url = C4::Context->config('mana_config'); |
27 |
my $mana_url = C4::Context->config('mana_config'); |
| 28 |
|
28 |
|
| 29 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
29 |
my ( $template, $loggedinuser, $cookie ) = get_template_and_user( |
| 30 |
{ |
30 |
{ |
| 31 |
template_name => "admin/admin-home.tt", |
31 |
template_name => "admin/admin-home.tt", |
| 32 |
query => $query, |
32 |
query => $query, |
| 33 |
type => "intranet", |
33 |
type => "intranet", |
| 34 |
flagsrequired => { parameters => '*' }, |
34 |
flagsrequired => { parameters => '*' }, |
| 35 |
} |
35 |
} |
| 36 |
); |
36 |
); |
| 37 |
|
37 |
|
| 38 |
if ( C4::Context->config('enable_plugins') ) { |
38 |
if ( C4::Context->config('enable_plugins') ) { |
| 39 |
my @admin_plugins = Koha::Plugins->new()->GetPlugins({ |
39 |
my @admin_plugins = Koha::Plugins->new()->GetPlugins( |
| 40 |
method => 'admin', |
40 |
{ |
| 41 |
}); |
41 |
method => 'admin', |
|
|
42 |
} |
| 43 |
); |
| 42 |
$template->param( admin_plugins => \@admin_plugins ); |
44 |
$template->param( admin_plugins => \@admin_plugins ); |
| 43 |
} |
45 |
} |
| 44 |
|
46 |
|
| 45 |
$template->param( mana_url => $mana_url, ); |
47 |
$template->param( mana_url => $mana_url, ); |
| 46 |
|
48 |
|
| 47 |
output_html_with_http_headers $query, $cookie, $template->output; |
49 |
output_html_with_http_headers $query, $cookie, $template->output; |
| 48 |
- |
|
|