]> 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)
committerLucas Gass <lucas@bywatersolutions.com>
Thu, 6 Feb 2020 21:15:39 +0000 (21:15 +0000)
commit6465c6f9680c138430b31cc71024d545b9f412ca
tree287c5f249425e6c3e8f8a1ecfa80c25ae7c6d6e1
parent5aed3545f3871cfe0ba94ec6efbe3cb216b7e0a2
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>
(cherry picked from commit 0cca2795cdae643a6a94b95ad7879c363006cfed)

Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Koha/Plugins/Base.pm