@@ -, +, @@ $ kshell k$ prove t/db_dependent/Koha/REST/Plugin/PluginRoutes.t $ mysql -hdb -ppassword > DROP DATABASE koha_kohadev; > CREATE DATABASE koha_kohadev; \q $ service memcached restart $ koha-plack --restart kohadev --- Koha/REST/Plugin/PluginRoutes.pm | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) --- a/Koha/REST/Plugin/PluginRoutes.pm +++ a/Koha/REST/Plugin/PluginRoutes.pm @@ -45,7 +45,8 @@ sub register { my @plugins; - if ( C4::Context->config("enable_plugins") ) + if ( C4::Context->config("enable_plugins") and + ! C4::Context->needs_install ) # Koha is installed { # plugin needs to define a namespace @plugins = Koha::Plugins->new()->GetPlugins( @@ -53,10 +54,11 @@ sub register { method => 'api_namespace', } ); - } - foreach my $plugin ( @plugins ) { - $spec = inject_routes( $spec, $plugin, $validator ); + foreach my $plugin ( @plugins ) { + $spec = inject_routes( $spec, $plugin, $validator ); + } + } return $spec; --