[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 2 21:16:06 CEST 2019


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

--- Comment #4 from Tomás Cohen Arazi <tomascohen at gmail.com> ---
Created attachment 89261
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89261&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

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


More information about the Koha-bugs mailing list