diff --git a/Controller/Backup.php b/Controller/Backup.php index 881b480..9cd11d2 100644 --- a/Controller/Backup.php +++ b/Controller/Backup.php @@ -23,12 +23,12 @@ use FacturaScripts\Core\Base\Controller; use FacturaScripts\Core\Base\ControllerPermissions; use FacturaScripts\Core\Cache; +use FacturaScripts\Core\Internal\UploadedFile; +use FacturaScripts\Core\Response; use FacturaScripts\Core\Tools; use FacturaScripts\Dinamic\Model\User; use RecursiveDirectoryIterator; use RecursiveIteratorIterator; -use Symfony\Component\HttpFoundation\File\UploadedFile; -use Symfony\Component\HttpFoundation\Response; use ZipArchive; /** @@ -53,7 +53,7 @@ public function getPageData(): array $data = parent::getPageData(); $data['menu'] = 'admin'; $data['title'] = 'backup'; - $data['icon'] = 'fas fa-download'; + $data['icon'] = 'fa-solid fa-download'; return $data; } diff --git a/Init.php b/Init.php index 9ade991..f72beae 100644 --- a/Init.php +++ b/Init.php @@ -1,7 +1,7 @@ + * Copyright (C) 2021-2024 Carlos Garcia Gomez * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU Lesser General Public License as @@ -16,25 +16,29 @@ * You should have received a copy of the GNU Lesser General Public License * along with this program. If not, see . */ + namespace FacturaScripts\Plugins\Backup; +use FacturaScripts\Core\Template\InitClass; + /** * Composer autoload. */ require_once __DIR__ . '/vendor/autoload.php'; -use FacturaScripts\Core\Base\InitClass; class Init extends InitClass { - public function init() + public function init(): void + { + } + + public function uninstall(): void { - ; } - public function update() + public function update(): void { - ; } } diff --git a/View/Backup.html.twig b/View/Backup.html.twig index 04a3bcf..545af21 100644 --- a/View/Backup.html.twig +++ b/View/Backup.html.twig @@ -6,7 +6,7 @@

- {{ fsc.title }} + {{ fsc.title }}


@@ -19,16 +19,16 @@

- {{ trans('download-backup') }} + {{ trans('download-backup') }}

{{ trans('download-backup-p') }}

@@ -39,7 +39,7 @@

- {{ trans('restore-backup') }} + {{ trans('restore-backup') }}

@@ -47,7 +47,7 @@ {{ trans('restore-backup-p') }} {{ trans('restore-backup-warning') }}

-
+
{{ trans('database') }} @@ -60,10 +60,10 @@ -
+