From 5131977e37b66d5bb8448df50b6b817000ef9322 Mon Sep 17 00:00:00 2001 From: miguel angel rasteu Date: Wed, 30 Aug 2023 12:54:31 +0200 Subject: [PATCH] #11924 Fix LTS warning --- .../update_manager_client/views/online.php | 20 +++++++++++++++++-- 1 file changed, 18 insertions(+), 2 deletions(-) diff --git a/pandora_console/update_manager_client/views/online.php b/pandora_console/update_manager_client/views/online.php index e12eab7be5..af9b261e8b 100644 --- a/pandora_console/update_manager_client/views/online.php +++ b/pandora_console/update_manager_client/views/online.php @@ -54,6 +54,22 @@ global $config; listUpdates(); + $text_for_next_version = ''; + $text_for_last_version = ''; + if ($updates[0]['lts'] === true) { + $text_for_next_version = __("Attention. You are about to install an LTS version. LTS versions are the most stable and are released twice a year. Before installing this LTS version, please make sure you have an up-to-date backup."); + } else { + $text_for_next_version = __("Attention. You are about to install an RRR version. This version may contain new features and changes, so its installation is not recommended if you are looking for maximum system stability. LTS versions are the most stable and are released twice a year.
Before installing this RRR version, please make sure you have an up-to-date backup."); + } + + if ($updates[array_key_last($updates)]['lts'] === true) { + $text_for_last_version = __("Attention. You are about to install an LTS version. LTS versions are the most stable and are released twice a year. Before installing this LTS version, please make sure you have an up-to-date backup."); + } else { + $text_for_last_version = __("Attention. You are about to install an RRR version. This version may contain new features and changes, so its installation is not recommended if you are looking for maximum system stability. LTS versions are the most stable and are released twice a year.
Before installing this RRR version, please make sure you have an up-to-date backup."); + } ?>

@@ -123,7 +139,7 @@ global $config; result.innerHTML = ''; umConfirm({ /*message: " "+nextUpdateVersion+". ",*/ - message: "

Attention. You are about to install an RRR version. This version may contain new features and changes, so its installation is not recommended if you are looking for maximum system stability. LTS versions are the most stable and are released twice a year. \n Before installing this RRR version, please make sure you have an up-to-date backup

.", + message: "'.$text_for_next_version.'

'; ?> ", title: " "+nextUpdateVersion, onAccept: function() { updateNext({ @@ -165,7 +181,7 @@ global $config; result.innerHTML = ''; umConfirm({ /*message: " "+lastUpdateVersion+". ",*/ - message: "

Attention. You are about to install an RRR version. This version may contain new features and changes, so its installation is not recommended if you are looking for maximum system stability. LTS versions are the most stable and are released twice a year. \n Before installing this RRR version, please make sure you have an up-to-date backup

.", + message: "'.$text_for_last_version.'

'; ?> ", title: " "+lastUpdateVersion, onAccept: function() { updateLatest({