Skip to content

Commit bd018a1

Browse files
committed
actualizar core 2024.93
1 parent f271214 commit bd018a1

File tree

4 files changed

+25
-21
lines changed

4 files changed

+25
-21
lines changed

Controller/Backup.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,12 @@
2323
use FacturaScripts\Core\Base\Controller;
2424
use FacturaScripts\Core\Base\ControllerPermissions;
2525
use FacturaScripts\Core\Cache;
26+
use FacturaScripts\Core\Internal\UploadedFile;
27+
use FacturaScripts\Core\Response;
2628
use FacturaScripts\Core\Tools;
2729
use FacturaScripts\Dinamic\Model\User;
2830
use RecursiveDirectoryIterator;
2931
use RecursiveIteratorIterator;
30-
use Symfony\Component\HttpFoundation\File\UploadedFile;
31-
use Symfony\Component\HttpFoundation\Response;
3232
use ZipArchive;
3333

3434
/**
@@ -53,7 +53,7 @@ public function getPageData(): array
5353
$data = parent::getPageData();
5454
$data['menu'] = 'admin';
5555
$data['title'] = 'backup';
56-
$data['icon'] = 'fas fa-download';
56+
$data['icon'] = 'fa-solid fa-download';
5757
return $data;
5858
}
5959

Init.php

Lines changed: 10 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22
/**
33
* This file is part of Backup plugin for FacturaScripts
4-
* Copyright (C) 2021 Carlos Garcia Gomez <carlos@facturascripts.com>
4+
* Copyright (C) 2021-2024 Carlos Garcia Gomez <carlos@facturascripts.com>
55
*
66
* This program is free software: you can redistribute it and/or modify
77
* it under the terms of the GNU Lesser General Public License as
@@ -16,25 +16,29 @@
1616
* You should have received a copy of the GNU Lesser General Public License
1717
* along with this program. If not, see <http://www.gnu.org/licenses/>.
1818
*/
19+
1920
namespace FacturaScripts\Plugins\Backup;
2021

22+
use FacturaScripts\Core\Template\InitClass;
23+
2124
/**
2225
* Composer autoload.
2326
*/
2427
require_once __DIR__ . '/vendor/autoload.php';
2528

26-
use FacturaScripts\Core\Base\InitClass;
2729

2830
class Init extends InitClass
2931
{
3032

31-
public function init()
33+
public function init(): void
34+
{
35+
}
36+
37+
public function uninstall(): void
3238
{
33-
;
3439
}
3540

36-
public function update()
41+
public function update(): void
3742
{
38-
;
3943
}
4044
}

View/Backup.html.twig

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<div class="row">
77
<div class="col">
88
<h1 class="h4">
9-
<i class="fas fa-save fa-fw"></i> {{ fsc.title }}
9+
<i class="fa-solid fa-save fa-fw"></i> {{ fsc.title }}
1010
</h1>
1111
<br/>
1212
</div>
@@ -19,16 +19,16 @@
1919
<div class="card shadow mb-5">
2020
<div class="card-body">
2121
<h2 class="h3">
22-
<i class="fas fa-download text-primary mr-2"></i> {{ trans('download-backup') }}
22+
<i class="fa-solid fa-download text-primary me-2"></i> {{ trans('download-backup') }}
2323
</h2>
2424
<p class="card-text">{{ trans('download-backup-p') }}</p>
2525
</div>
2626
<div class="card-footer p-2">
27-
<a href="#" class="btn btn-primary btn-spin-action mr-2" onclick="return downloadDbBackup()">
28-
<i class="fas fa-database mr-2"></i> {{ trans('database') }}
27+
<a href="#" class="btn btn-primary btn-spin-action me-2" onclick="return downloadDbBackup()">
28+
<i class="fa-solid fa-database me-2"></i> {{ trans('database') }}
2929
</a>
3030
<a href="#" class="btn btn-secondary btn-spin-action" onclick="return downloadFilesBackup()">
31-
<i class="fas fa-download mr-2"></i> {{ trans('files') }}
31+
<i class="fa-solid fa-download me-2"></i> {{ trans('files') }}
3232
</a>
3333
</div>
3434
</div>
@@ -39,15 +39,15 @@
3939
<div class="card shadow mb-4">
4040
<div class="card-body bg-warning">
4141
<h3 class="h5 mb-0">
42-
<i class="fas fa-database mr-2"></i> {{ trans('restore-backup') }}
42+
<i class="fa-solid fa-database me-2"></i> {{ trans('restore-backup') }}
4343
</h3>
4444
</div>
4545
<div class="card-body">
4646
<p>
4747
{{ trans('restore-backup-p') }}
4848
<span class="text-danger">{{ trans('restore-backup-warning') }}</span>
4949
</p>
50-
<div class="form-group">
50+
<div class="mb-3">
5151
{{ trans('database') }}
5252
<input type="file" name="db_file" accept=".sql,.sql.gz" class="form-control-file"
5353
required/>
@@ -60,10 +60,10 @@
6060
<button type="submit" class="btn btn-warning btn-spin-action">
6161
{{ trans('restore') }}
6262
</button>
63-
<div class="btn-group ml-2">
63+
<div class="btn-group ms-2">
6464
<div class="dropdown">
6565
<button class="btn btn-secondary dropdown-toggle" type="button"
66-
data-toggle="dropdown" aria-expanded="false">
66+
data-bs-toggle="dropdown" aria-expanded="false">
6767
{{ trans('switch-db-charset') }}
6868
</button>
6969
<div class="dropdown-menu">
@@ -88,12 +88,12 @@
8888
<div class="card shadow mb-4">
8989
<div class="card-body text-white bg-secondary">
9090
<h3 class="h5 mb-0">
91-
<i class="fas fa-upload mr-2"></i> {{ trans('restore-files') }}
91+
<i class="fa-solid fa-upload me-2"></i> {{ trans('restore-files') }}
9292
</h3>
9393
</div>
9494
<div class="card-body">
9595
<p>{{ trans('restore-files-p') }}</p>
96-
<div class="form-group">
96+
<div class="mb-3">
9797
{{ trans('files') }}
9898
<input type="file" name="zip_file" accept=".zip" class="form-control-file" required/>
9999
</div>

facturascripts.ini

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
name = "Backup"
22
description = "Permite realizar y restaurar copias de seguridad."
33
version = 2.3
4-
min_version = 2022.6
4+
min_version = 2024.93
55
require_php = 'zlib'

0 commit comments

Comments
 (0)