Merge branch 'ent-11924-advertencia-al-instalar-paquetes-rrr' into 'develop'
Ent 11924 advertencia al instalar paquetes rrr See merge request artica/pandorafms!6375
This commit is contained in:
commit
5c8789af94
|
@ -54,6 +54,23 @@ global $config;
|
|||
<?php
|
||||
} else {
|
||||
// Updates.
|
||||
$settings = update_manager_get_config_values();
|
||||
$umc = new \UpdateManager\Client($settings);
|
||||
$updates = $umc->listUpdates();
|
||||
$text_for_next_version = '';
|
||||
$text_for_last_version = '';
|
||||
$back_up_url = 'index.php?sec=gextensions&sec2=enterprise/godmode/manage_backups';
|
||||
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 <a href='.$back_up_url.'>up-to-date backup</a>.');
|
||||
} 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. <br/> Before installing this RRR version, please make sure you have an <a href='.$back_up_url.'>up-to-date backup</a>.');
|
||||
}
|
||||
|
||||
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 <a href='.$back_up_url.'>up-to-date backup</a>.');
|
||||
} 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. <br/> Before installing this RRR version, please make sure you have an <a href='.$back_up_url.'>up-to-date backup</a>.');
|
||||
}
|
||||
?>
|
||||
<div id="um-loading">
|
||||
<p id="loading-msg"></p>
|
||||
|
@ -122,7 +139,8 @@ global $config;
|
|||
blast.setAttribute('disable', true);
|
||||
result.innerHTML = '';
|
||||
umConfirm({
|
||||
message: "<?php echo __('This action will upgrade this console to version '); ?> "+nextUpdateVersion+". <?php echo __('Are you sure?'); ?>",
|
||||
/*message: "<?php echo __('This action will upgrade this console to version '); ?> "+nextUpdateVersion+". <?php echo __('Are you sure?'); ?>",*/
|
||||
message: "<?php echo '<p>'.$text_for_next_version.'</p>'; ?> ",
|
||||
title: "<?php echo __('Update to'); ?> "+nextUpdateVersion,
|
||||
onAccept: function() {
|
||||
updateNext({
|
||||
|
@ -163,7 +181,8 @@ global $config;
|
|||
blast.setAttribute('disable', true);
|
||||
result.innerHTML = '';
|
||||
umConfirm({
|
||||
message: "<?php echo __('This action will upgrade this console to version '); ?> "+lastUpdateVersion+". <?php echo __('Are you sure?'); ?>",
|
||||
/*message: "<?php echo __('This action will upgrade this console to version '); ?> "+lastUpdateVersion+". <?php echo __('Are you sure?'); ?>",*/
|
||||
message: "<?php echo '<p>'.$text_for_last_version.'</p>'; ?> ",
|
||||
title: "<?php echo __('Update to'); ?> "+lastUpdateVersion,
|
||||
onAccept: function() {
|
||||
updateLatest({
|
||||
|
|
Loading…
Reference in New Issue