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

(-)a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt (+2 lines)
Lines 219-225 Link Here
219
                                                            [% END %]
219
                                                            [% END %]
220
                                                        [% END %]
220
                                                        [% END %]
221
                                                        [% IF ( CAN_user_plugins_manage ) %]
221
                                                        [% IF ( CAN_user_plugins_manage ) %]
222
                                                            [% IF ( enable_browser_upload ) %]
222
                                                                <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class | html %]"><i class="fa fa-trash-can fa-fw"></i> Uninstall</a></li>
223
                                                                <li><a class="uninstall_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-uninstall.pl?class=[% plugin.class | html %]"><i class="fa fa-trash-can fa-fw"></i> Uninstall</a></li>
224
                                                            [% END %]
223
                                                            [% IF ( plugin.is_enabled ) %]
225
                                                            [% IF ( plugin.is_enabled ) %]
224
                                                                    <li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=disable"><i class="fa fa-pause fa-fw"></i> Disable</a></li>
226
                                                                    <li><a class="enable_plugin" data-plugin-name="[% plugin.metadata.name | html %]" href="/cgi-bin/koha/plugins/plugins-enable.pl?class=[% plugin.class | html %]&method=disable"><i class="fa fa-pause fa-fw"></i> Disable</a></li>
225
                                                            [% ELSE %]
227
                                                            [% ELSE %]
(-)a/plugins/plugins-uninstall.pl (-2 / +4 lines)
Lines 38-45 my ( $template, $loggedinuser, $cookie ) = get_template_and_user( Link Here
38
    }
38
    }
39
);
39
);
40
40
41
my $browser_upload_enabled = C4::Context->config('enable_plugin_browser_upload');
41
my $class = $input->param('class');
42
my $class = $input->param('class');
42
43
43
Koha::Plugins::Handler->delete( { class => $class } );
44
if ( $browser_upload_enabled && $class ) {
45
    Koha::Plugins::Handler->delete( { class => $class } );
46
}
44
47
45
print $input->redirect("/cgi-bin/koha/plugins/plugins-home.pl");
48
print $input->redirect("/cgi-bin/koha/plugins/plugins-home.pl");
46
- 

Return to bug 25672