1
0
mirror of https://github.com/devcode-it/openstamanager.git synced 2025-06-05 22:09:38 +02:00

Miglioramento delle procedure di aggiornamento

This commit is contained in:
Thomas Zilio
2018-09-18 17:35:04 +02:00
parent 0c1d9c43d2
commit 06ab3b0558
3 changed files with 96 additions and 54 deletions

View File

@@ -11,7 +11,7 @@ $scriptValue = $updateRate * 5;
if (filter('action') == 'do_update') {
// Aggiornamento in progresso
if (Update::isUpdateAvailable()) {
$update = Update::getUpdate();
$update = Update::getCurrentUpdate();
$result = Update::doUpdate($updateRate);
@@ -19,7 +19,7 @@ if (filter('action') == 'do_update') {
// Aggiunta del messaggio generico riguardante l'aggiornamento
echo '
<script>
addVersion("'.$update['version'].'");
addVersion("'.$update['name'].'");
</script>';
if (is_array($result)) {
@@ -178,7 +178,7 @@ if (filter('action') == 'do_update') {
<div id="result"></div>';
$total = 0;
$updates = Update::getTodos();
$updates = Update::getTodoUpdates();
foreach ($updates as $update) {
if ($update['sql'] && (!empty($update['done']) || is_null($update['done']))) {