]> git.koha-community.org Git - koha.git/commit
Bug 22834: Add Koha::Plugins::Base->bundle_path
authorTomas Cohen Arazi <tomascohen@theke.io>
Thu, 2 May 2019 18:51:30 +0000 (15:51 -0300)
committerMartin Renvoize <martin.renvoize@ptfs-europe.com>
Tue, 18 Jun 2019 16:33:53 +0000 (17:33 +0100)
commit0cca2795cdae643a6a94b95ad7879c363006cfed
treec4ad03a1a2e0481bf26648ee62373da32f388b9d
parent4adb1791c66a3577d32f10c417e4953a86f5769f
Bug 22834: Add Koha::Plugins::Base->bundle_path

This patch adds a 'bundle_path' method that return the base path for
assets included in the plugin. The idea is that it will be used for
calculation of the absolute path in the filesystem for static content.

To test:
- Apply the unit tests patch
- Run:
  $ kshell
 k$ prove t/db_dependent/Plugins.t
=> FAIL: The method is not implemented
- Apply this patch
- Run:
 k$ prove t/db_dependent/Plugins.t
=> SUCCESS: Tests pass!
- Sign off :-D

Signed-off-by: Arthur Suzuki <arthur.suzuki@biblibre.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Koha/Plugins/Base.pm