Koha-clms/Koha/Template/Plugin
Tomás Cohen Arazi f64051cddb
Bug 41107: (follow-up) Use Koha::Status in Koha::Template::Plugin::Koha
This patch makes the template plugin used for rendering the Koha version
use the introduced method.

I did this checks:

```shell
cd koha-tmpl
git grep Koha.Version
```

The places Koha.Version is used, it is used as:

* `Koha.Version.maintenance`
* `Koha.Version.release`
* Assigned to a variable like this `SET koha_version = Koha.Version`

All occurences of the `koha_version` template variable are:

* `koha_version.development`
* `koha_version.major`
* `koha_version.minor`

This implies the newly added `.version` attribute has no undesired side
effects in templates.

Note: plugins-home.tt has a different use of a variable named the same,
which is unrelated.

To test:
1. Apply this patch
2. Run:
   $ ktd --shell
  k$ prove t/Koha_Template_Plugin_Koha.t
=> SUCCESS: Tests pass!
3. Sign off :-D

Signed-off-by: David Nind <david@davidnind.com>
Signed-off-by: Kyle M Hall <kyle@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@openfifth.co.uk>
2026-03-23 09:33:54 +01:00
..
AdditionalContents.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Asset.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
AudioAlerts.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
AuthClient.pm Bug 37711: (follow-up) Fix AuthClient plugin database upgrade handling 2025-11-05 07:12:33 -07:00
AuthorisedValues.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Biblio.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Branches.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Categories.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
CirculationRules.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
ClassSources.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Context.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Desks.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
ExtendedAttributeTypes.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Frameworks.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
HtmlId.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
HtmlScrubber.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
HtmlTags.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
I18N.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Item.pm Bug 40163: (follow-up) Fix wrong GNU links and update test 2025-09-24 09:25:04 -06:00
ItemTypes.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
JSConsents.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Koha.pm Bug 41107: (follow-up) Use Koha::Status in Koha::Template::Plugin::Koha 2026-03-23 09:33:54 +01:00
KohaDates.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
KohaPlugins.pm Bug 40095: Add context to intranet_js plugin hook 2026-02-06 15:17:36 -07:00
KohaSpan.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
KohaTimes.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Languages.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
NoticeTemplates.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Notices.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Price.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Registers.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
Remove_MARC_punctuation.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
SafeURL.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
TablesSettings.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
To.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00
raw.pm Bug 40163: Fix several http addresses in the code docs 2025-09-23 16:21:29 -06:00