@@ -, +, @@ --- Koha/Plugins.pm | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) --- a/Koha/Plugins.pm +++ a/Koha/Plugins.pm @@ -131,13 +131,13 @@ sub GetPluginsMetadata { } )->_resultset->get_column('plugin_class'); - my @metafiles = File::Find::Rule->file()->name('META.yml')->in( @pluginsdir ); + my @metafiles = File::Find::Rule->file()->name('PLUGIN.yml')->in( @pluginsdir ); my @plugins; while ( my $plugin_class = $plugin_classes->next ) { my $plugin_path = $plugin_class; $plugin_path =~ s/::/\//g; # Take class name, transform :: to / to get path - my $yaml_to_find = "$plugin_path/META.yml"; + my $yaml_to_find = "$plugin_path/PLUGIN.yml"; $plugin_path =~ s/$/.pm/; # Add .pm to the end # Find the full path to the file, it's somewhere in the list of metafiles we found when this module as loaded @@ -146,7 +146,7 @@ sub GetPluginsMetadata { my $plugin_metadata; if ( -r $meta_yaml ) { # If the metafile exists and is readable, use it $plugin_metadata = YAML::LoadFile($meta_yaml); - } else { # Fall back to loading the plugin to get the metadata if there is no META.yml file to read + } else { # Fall back to loading the plugin to get the metadata if there is no PLUGIN.yml file to read load $plugin_class; my $plugin = $plugin_class->new({ enable_plugins => $self->{'enable_plugins'} --