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 commit 0ff7d4ac60.

* Revert "Updated"

This reverts commit 8d637dff6c.

* Update index_data.php

* Update index_data.php

* Update index_data.php

* Updated

* Update CHANGELOG.md
This commit is contained in:
Roman Kelesidis 2024-07-13 14:26:34 +07:00 committed by GitHub
commit c7f2223f7f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
19 changed files with 67 additions and 50 deletions

View file

@ -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');
}