From df006a70f77806c97589a68307d86e9c832b9568 Mon Sep 17 00:00:00 2001 From: Tomas Cohen Arazi Date: Wed, 9 Mar 2022 08:23:38 -0300 Subject: [PATCH] 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 --- .../intranet-tmpl/prog/en/modules/plugins/plugins-home.tt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt index 55ff28663a..08e78a0c2a 100644 --- a/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt +++ b/koha-tmpl/intranet-tmpl/prog/en/modules/plugins/plugins-home.tt @@ -153,13 +153,13 @@ [% IF ( plugin.metadata.minimum_version && koha_version < plugin.metadata.minimum_version ) %]
- 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.
[% END %] [% IF ( plugin.metadata.maximum_version && koha_version > plugin.metadata.maximum_version ) %]
- 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.
[% END %] -- 2.35.1