[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
Mon May 13 15:40:48 CEST 2019


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

Arthur Suzuki <arthur.suzuki at biblibre.com> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
  Attachment #89261|0                           |1
        is obsolete|                            |

--- Comment #6 from Arthur Suzuki <arthur.suzuki at biblibre.com> ---
Created attachment 89661
  -->
https://bugs.koha-community.org/bugzilla3/attachment.cgi?id=89661&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