Ticket #3867 (closed defect: fixed)

Opened 4 years ago

Last modified 4 years ago

Plugins in one repo affect the plugins in another

Reported by: pm705@… Owned by:
Priority: unset Milestone: 3.2.4
Component: - Version:
Severity: normal Keywords:
Cc:

Description

Plugins installed in one repository appear in another repository on the same eprints installation.

register plugins is a bit wrong

Change History

Changed 4 years ago by pm705@…

  • status changed from new to closed
  • resolution set to fixed

fixed --- PluginFactory?.pm (revision 5702) +++ PluginFactory?.pm (working copy) @@ -193,7 +193,7 @@

use strict "refs"; return if( $disable );

- $self->register_plugin( $plugin ); + $self->register_plugin( $plugin , $data );

}

sub _load_xslt

@@ -413,14 +413,12 @@

sub register_plugin {

- my( $self, $plugin ) = @_; + my( $self, $plugin, $data ) = @_;

my $id = $plugin->get_id; my $type = $plugin->get_type; my $class = ref($plugin);

- my $data = ref($self) ? $self->{data} : \%SYSTEM_PLUGINS; -

push @{$data->{$type}=[]}, $id; $data->{"_class_"}->{$id} = $class;

}

Note: See TracTickets for help on using tickets.