Skip to content

Commit 88ecc65

Browse files
committed
fix: tasto creazione backup
1 parent c8cb6de commit 88ecc65

1 file changed

Lines changed: 8 additions & 10 deletions

File tree

modules/backups/edit.php

Lines changed: 8 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -442,20 +442,18 @@ function loadSize(number, id){
442442
</div>
443443
</div>
444444
</div>';
445+
}
446+
} else {
447+
echo '
448+
449+
<div class="alert alert-danger">'.tr('La cartella di backup non esiste!').' '.tr('Non è possibile eseguire i backup!').'</div>';
450+
}
445451

446-
// Aggiungi un pulsante "Crea backup" anche in fondo alla pagina
447-
if (!empty($backup_dir)) {
448-
echo '
452+
echo'
449453
<div class="row mt-4 mb-4">
450454
<div class="col-md-8 mx-auto text-center">
451455
<a class="btn btn-lg btn-success" aria-haspopup="true" aria-expanded="false" onclick="creaBackup(this)">
452456
<i class="fa fa-archive fa-fw"></i> '.tr('Crea nuovo backup').'
453457
</a>
454458
</div>
455-
</div>';
456-
}
457-
}
458-
} else {
459-
echo '
460-
<div class="alert alert-danger">'.tr('La cartella di backup non esiste!').' '.tr('Non è possibile eseguire i backup!').'</div>';
461-
}
459+
</div>';

0 commit comments

Comments
 (0)