Bug 25285: Fix wrong message about required Koha version in plugins

When you install a plugin that requires a newer Koha version, it reports
this:

<<
Warning: This report was written for a newer version of Koha. Run at your own risk.
>>

It is wrong in a couple ways:
- It is not a report.
- It feels like it dates back to when plugins were only run i.e.
  pre-hooks, etc.

This patch proposes a change to reflect this.

To test:
1. Verify the string changes make sense to you
2. Sign off :-D

Signed-off-by: Tomas Cohen Arazi <tomascohen@theke.io>
Signed-off-by: Lucas Gass <lucas@bywatersolutions.com>
Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
Signed-off-by: Fridolin Somers <fridolin.somers@biblibre.com>
This commit is contained in:
Tomas Cohen Arazi 2022-03-09 08:23:38 -03:00 committed by Fridolin Somers
parent b9458f6c79
commit 174adb2a3b
1 changed files with 2 additions and 2 deletions

View File

@ -153,13 +153,13 @@
[% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
<div class="dialog alert">
Warning: This report was written for a newer version of Koha. Run at your own risk.
Warning: This plugin was written for a newer version of Koha. Use at your own risk.
</div>
[% END %]
[% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
<div class="dialog alert">
Warning: This plugin was written for an older version of Koha. Run at your own risk.
Warning: This plugin was written for an older version of Koha. Use at your own risk.
</div>
[% END %]
</td>