mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-21 13:54:02 -07:00
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:
parent
1073f19013
commit
eeb391da6a
7 changed files with 11 additions and 6 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue