[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
Thu May 16 05:06:06 CEST 2019


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

--- Comment #11 from Agustín Moyano <agustinmoyano at theke.io> ---
Created attachment 89811
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89811&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>

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


More information about the Koha-bugs mailing list