[9.2.23] fonction backup -> export

This commit is contained in:
Fred Tempez 2020-03-03 15:08:18 +01:00
parent bf1de5ae3c
commit c4e5a257d6
2 changed files with 3 additions and 3 deletions

View File

@ -15,7 +15,7 @@
class config extends common {
public static $actions = [
'backup' => self::GROUP_ADMIN,
'export' => self::GROUP_ADMIN,
'configMetaImage' => self::GROUP_ADMIN,
'generateFiles' => self::GROUP_ADMIN,
'updateRobots' => self::GROUP_ADMIN,
@ -206,7 +206,7 @@ class config extends common {
/**
* Sauvegarde des données
*/
public function backup() {
public function export() {
// Creation du ZIP
$fileName = str_replace('/','',helper::baseUrl(false,false)) . '-'. date('Y-m-d-h-i-s', time()) . '.zip';
$zip = new ZipArchive();

View File

@ -178,7 +178,7 @@
</div>
<div class="col4 offset1">
<?php echo template::button('configExport', [
'href' => helper::baseUrl() . 'config/backup',
'href' => helper::baseUrl() . 'config/export',
'value' => 'Exporter une copie intégrale du site',
]); ?>
</div>