[Koha-bugs] [Bug 22834] Add a method for plugins to return the absolute path for bundled files

bugzilla-daemon at bugs.koha-community.org bugzilla-daemon at bugs.koha-community.org
Wed May 29 14:14:41 CEST 2019


https://bugs.koha-community.org/bugzilla3/show_bug.cgi?id=22834

--- Comment #14 from Kyle M Hall <kyle at bywatersolutions.com> ---
Created attachment 90182
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=90182&action=edit
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 at biblibre.com>

Signed-off-by: Kyle M Hall <kyle at bywatersolutions.com>

-- 
You are receiving this mail because:
You are watching all bug changes.


More information about the Koha-bugs mailing list