mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -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
|
@ -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;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue