misc: Minor improvements (#1876)

* misc: Minor improvements

* Update viewprofile.php

* Update viewprofile.php

* Update functions.php

* Update filelist.php

* Revert "Update filelist.php"

This reverts commit e5eb9a6b3f.

* Update .cliffignore

* Updated

* Update viewtopic_attach_guest.tpl
This commit is contained in:
Roman Kelesidis 2025-04-16 17:40:36 +07:00 committed by GitHub
commit eeb391da6a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
7 changed files with 11 additions and 6 deletions

View file

@ -898,13 +898,16 @@ function bb_get_config($table, $from_db = false, $update_cache = true)
{
if ($from_db or !$cfg = CACHE('bb_config')->get("config_{$table}")) {
$cfg = [];
foreach (DB()->fetch_rowset("SELECT * FROM $table") as $row) {
$cfg[$row['config_name']] = $row['config_value'];
}
if ($update_cache) {
CACHE('bb_config')->set("config_{$table}", $cfg);
}
}
return $cfg;
}