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

(-)a/Koha/Template/Plugin/KohaPlugins.pm (-7 / +12 lines)
Lines 48-57 to output to the head section of opac pages. Link Here
48
48
49
sub get_plugins_opac_head {
49
sub get_plugins_opac_head {
50
    return q{}
50
    return q{}
51
      unless C4::Context->preference('UseKohaPlugins')
51
      unless C4::Context->preference('UseKohaPlugins');
52
      && C4::Context->config("enable_plugins");
53
52
54
    my @plugins = Koha::Plugins->new()->GetPlugins(
53
    my $p = Koha::Plugins->new();
54
55
    return q{} unless $p;
56
57
    my @plugins = $p->GetPlugins(
55
        {
58
        {
56
            method => 'opac_head',
59
            method => 'opac_head',
57
        }
60
        }
Lines 73-82 to output to the javascript section of at the bottom of opac pages. Link Here
73
76
74
sub get_plugins_opac_js {
77
sub get_plugins_opac_js {
75
    return q{}
78
    return q{}
76
      unless C4::Context->preference('UseKohaPlugins')
79
      unless C4::Context->preference('UseKohaPlugins');
77
      && C4::Context->config("enable_plugins");
80
81
    my $p = Koha::Plugins->new();
82
83
    return q{} unless $p;
78
84
79
    my @plugins = Koha::Plugins->new()->GetPlugins(
85
    my @plugins = $p->GetPlugins(
80
        {
86
        {
81
            method => 'opac_js',
87
            method => 'opac_js',
82
        }
88
        }
83
- 

Return to bug 20181