Bug 15879: Allow multiple plugin directories to be defined in koha-conf.xml
authorKyle M Hall <kyle@bywatersolutions.com>
Mon, 22 Feb 2016 14:25:18 +0000 (14:25 +0000)
committerKyle M Hall <kyle@bywatersolutions.com>
Wed, 11 Jan 2017 14:03:00 +0000 (14:03 +0000)
commitea6a11ec826b0b174f4dc0f4c36395466f3f4e6f
treea67b0938c04122c502df71891cbd80de944df8e0
parent435b7badc22d9c05cb16623d6f423206992ec476
Bug 15879: Allow multiple plugin directories to be defined in koha-conf.xml

It would be very useful to be able to define multiple plugin directories
in the Koha conf file. This would allow for ease of plugin development
so that each plugin installed can live in its own git repository. For
compatibility, the first plugindir instance defined should be the one
used for uploading plugins via the web interface.

Test Plan:
1) Apply this patch
2) Define a second pluginsdir line in your koha-conf.xml
3) Clone the kitchen sink plugin to this new path like this:
   git clone https://github.com/bywatersolutions/koha-plugin-kitchen-sink.git /path/to/new/plugins/dir
4) Restart memcached if you are running it
5) The Kitchen Sink plugin should now appear in your list of plugins!

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
I rebased it against master and tested it on a kohadevbox

Signed-off-by: Jonathan Druart <jonathan.druart@biblibre.com>

Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Koha/Plugins.pm
Koha/Plugins/Handler.pm
plugins/plugins-upload.pl