mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
Datastore improvements (#1538)
* Datastore improvements * Updated * Update functions.php * Updated * Updated * Updated * Update index.php * Update index.php * Update index.php * Update index.php * Update viewtopic.php * Update functions.php * Updated * Updated * Revert "Updated" This reverts commit0ff7d4ac60
. * Revert "Updated" This reverts commit8d637dff6c
. * Update index_data.php * Update index_data.php * Update index_data.php * Updated * Update CHANGELOG.md
This commit is contained in:
parent
5971379b6c
commit
c7f2223f7f
19 changed files with 67 additions and 50 deletions
|
@ -10,19 +10,19 @@
|
|||
require __DIR__ . '/pagestart.php';
|
||||
|
||||
// Statistics
|
||||
if (!$stats = $datastore->get('stats')) {
|
||||
if (!$stats = $datastore->get('stats') and !$datastore->has('stats')) {
|
||||
$datastore->update('stats');
|
||||
$stats = $datastore->get('stats');
|
||||
}
|
||||
|
||||
// Files integrity check
|
||||
if (!$files_integrity_data = $datastore->get('files_integrity')) {
|
||||
if (!$files_integrity_data = $datastore->get('files_integrity') and !$datastore->has('files_integrity')) {
|
||||
$datastore->update('files_integrity');
|
||||
$files_integrity_data = $datastore->get('files_integrity');
|
||||
}
|
||||
|
||||
// Check for updates
|
||||
if (!$update_data = $datastore->get('check_updates')) {
|
||||
if (!$update_data = $datastore->get('check_updates') and !$datastore->has('check_updates')) {
|
||||
$datastore->update('check_updates');
|
||||
$update_data = $datastore->get('check_updates');
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue