Overview
Comment: | Fix documents size in backup page for SQLite storage |
---|---|
Downloads: | Tarball | ZIP archive | SQL archive |
Timelines: | family | ancestors | descendants | both | trunk | stable |
Files: | files | file ages | folders |
SHA3-256: |
899f8a37cf0fcce98e5c968830bdb4fb |
User & Date: | bohwaz on 2021-12-21 01:52:18 |
Other Links: | manifest | tags |
Context
2021-12-21
| ||
23:45 | Fix some error messages check-in: 544d6ac49b user: bohwaz tags: trunk, stable | |
02:07 | Merge with trunk + missing commit check-in: 70ed2096ac user: bohwaz tags: templates | |
01:52 | Fix documents size in backup page for SQLite storage check-in: 899f8a37cf user: bohwaz tags: trunk, stable | |
2021-12-20
| ||
14:12 | Fix email content for password changing check-in: ff3e5659fd user: bohwaz tags: trunk, stable | |
Changes
Modified src/www/admin/config/backup/save.php from [977249d76d] to [9f5c67bf3b].
1 2 3 4 5 6 7 8 9 | <?php namespace Garradin; require_once __DIR__ . '/../_inc.php'; $s = new Sauvegarde; // Download database $form->runIf('download', function () use ($s) { | > > | 1 2 3 4 5 6 7 8 9 10 11 | <?php namespace Garradin; use Garradin\Files\Files; require_once __DIR__ . '/../_inc.php'; $s = new Sauvegarde; // Download database $form->runIf('download', function () use ($s) { |
︙ | ︙ | |||
36 37 38 39 40 41 42 43 44 45 | $config = Config::getInstance(); $config->set('frequence_sauvegardes', $frequency); $config->set('nombre_sauvegardes', $number); $config->save(); }, 'backup_config', Utils::getSelfURI(['ok' => 'config'])); $db_size = $s->getDBSize(); $ok = qg('ok'); // return message | > | | 38 39 40 41 42 43 44 45 46 47 48 49 50 51 | $config = Config::getInstance(); $config->set('frequence_sauvegardes', $frequency); $config->set('nombre_sauvegardes', $number); $config->save(); }, 'backup_config', Utils::getSelfURI(['ok' => 'config'])); $db_size = $s->getDBSize(); $files_size = (FILE_STORAGE_BACKEND == 'SQLite') ? Files::getUsedQuota() : null; $ok = qg('ok'); // return message $tpl->assign(compact('ok', 'db_size', 'files_size')); $tpl->display('admin/config/backup/save.tpl'); |