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

@ -116,7 +116,10 @@ function generate_smilies($mode)
$user->session_start();
}
$data = $datastore->get('smile_replacements');
if (!$data = $datastore->get('smile_replacements') and !$datastore->has('smile_replacements')) {
$datastore->update('smile_replacements');
$data = $datastore->get('smile_replacements');
}
if ($sql = $data['smile']) {
$num_smilies = 0;