]> git.koha-community.org Git - koha.git/commit
Bug 13496: add a method for the templates to print Koha version as desired
authorTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 28 Dec 2014 22:44:39 +0000 (19:44 -0300)
committerTomas Cohen Arazi <tomascohen@gmail.com>
Sun, 4 Jan 2015 14:24:07 +0000 (11:24 -0300)
commitd8eff67534ca5c4a16f730f6449fd4db1b507927
tree88bd05c2951f12f4c914a4e71ad29dac9ee3aaa4
parent45de696ce41ce8067043c26ef457530f39fc2bc2
Bug 13496: add a method for the templates to print Koha version as desired

This patch introduces a simple template plugin function that returns
the Koha version number in different suitable formats.

It introduces unit tests for the new function. They are run with

To test:
- Apply the patch
- Run
  $ prove t/Koha_Template_Plugin_Koha.t
=> SUCCESS: the tests pass.
- Sign off :-D

Signed-off-by: Chris Cormack <chris@bigballofwax.co.nz>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Tomas Cohen Arazi <tomascohen@gmail.com>
Koha/Template/Plugin/Koha.pm
t/Koha_Template_Plugin_Koha.t [new file with mode: 0644]