From dc60b4929d37fcdd3d350730e7c0627cc67849e0 Mon Sep 17 00:00:00 2001 From: fredtempez Date: Tue, 25 Dec 2018 18:38:17 +0100 Subject: [PATCH] =?UTF-8?q?v9.0.0=20fonction=20export=20=C3=A0=20corriger?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/module/theme/theme.php | 20 ++++++++++---------- core/module/theme/view/manage/manage.php | 4 ++-- 2 files changed, 12 insertions(+), 12 deletions(-) diff --git a/core/module/theme/theme.php b/core/module/theme/theme.php index 901dddb1..af39c9ce 100755 --- a/core/module/theme/theme.php +++ b/core/module/theme/theme.php @@ -25,8 +25,8 @@ class theme extends common { 'reset' => self::GROUP_ADMIN, 'site' => self::GROUP_ADMIN, 'manage' => self::GROUP_ADMIN, - 'themeExport' => self::GROUP_ADMIN, - 'themeImport' => self::GROUP_ADMIN + 'export' => self::GROUP_ADMIN, + 'import' => self::GROUP_ADMIN ]; public static $aligns = [ 'left' => 'À gauche', @@ -447,18 +447,18 @@ class theme extends common { * Import du thème */ public function manage() { - // Valeurs en sortie - $this->addOutput([ - 'title' => 'Gestion des thèmes', - 'view' => 'manage' - ]); - } + // Valeurs en sortie + $this->addOutput([ + 'title' => 'Gestion des thèmes', + 'view' => 'manage' + ]); + } /** * Export du thème */ - public function themeExport() { + public function export() { // Creation du ZIP $fileName = date('Theme Y-m-d-h-i-s', time()) . '.zip'; $zip = new ZipArchive(); @@ -482,7 +482,7 @@ class theme extends common { /** * Import du thème */ - public function themeImport() { + public function import() { } } \ No newline at end of file diff --git a/core/module/theme/view/manage/manage.php b/core/module/theme/view/manage/manage.php index 8555e904..c5a941ef 100644 --- a/core/module/theme/view/manage/manage.php +++ b/core/module/theme/view/manage/manage.php @@ -10,13 +10,13 @@
helper::baseUrl() . 'theme/themeImport', + 'href' => helper::baseUrl() . 'theme/import', 'value' => 'Importer les données du thème' ]); ?>
helper::baseUrl() . 'theme/themeExport', + 'href' => helper::baseUrl() . 'theme/export', 'value' => 'Exporter les données du thème' ]); ?>