View | Details | Raw Unified | Return to bug 20383
Collapse All | Expand All

(-)a/admin/admin-home.pl (+6 lines)
Lines 20-27 use Modern::Perl; Link Here
20
use CGI qw ( -utf8 );
20
use CGI qw ( -utf8 );
21
use C4::Auth;
21
use C4::Auth;
22
use C4::Output;
22
use C4::Output;
23
use Koha::Plugins;
23
24
24
my $query = new CGI;
25
my $query = new CGI;
26
27
my $plugins_enabled = C4::Context->preference('UseKohaPlugins') && C4::Context->config("enable_plugins");
28
25
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
29
my ( $template, $loggedinuser, $cookie ) = get_template_and_user(
26
    {
30
    {
27
        template_name   => "admin/admin-home.tt",
31
        template_name   => "admin/admin-home.tt",
Lines 33-36 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
33
    }
37
    }
34
);
38
);
35
39
40
$template->param( plugins_enabled => $plugins_enabled, );
41
36
output_html_with_http_headers $query, $cookie, $template->output;
42
output_html_with_http_headers $query, $cookie, $template->output;
(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/admin/admin-home.tt (-2 / +1 lines)
Lines 59-65 Link Here
59
                    <dt><a href="/cgi-bin/koha/admin/cities.pl">Cities and towns</a></dt>
59
                    <dt><a href="/cgi-bin/koha/admin/cities.pl">Cities and towns</a></dt>
60
                    <dd>Define cities and towns that your patrons live in.</dd>
60
                    <dd>Define cities and towns that your patrons live in.</dd>
61
                </dl>
61
                </dl>
62
                [% IF CAN_user_plugins %]
62
                [% IF CAN_user_plugins && plugins_enabled %]
63
                    <h3>Plugins</h3>
63
                    <h3>Plugins</h3>
64
                    <dl>
64
                    <dl>
65
                        <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl">Manage plugins</a></dt>
65
                        <dt><a href="/cgi-bin/koha/plugins/plugins-home.pl">Manage plugins</a></dt>
66
- 

Return to bug 20383