mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-20 21:33:54 -07:00
Minor improvements (#796)
This commit is contained in:
parent
e6d66d2d7f
commit
a66a0007c3
3 changed files with 5 additions and 5 deletions
|
@ -127,7 +127,7 @@ define('BOT_UID', -746);
|
|||
*/
|
||||
$DBS = new TorrentPier\Legacy\Dbs($bb_cfg);
|
||||
|
||||
function DB($db_alias = 'db')
|
||||
function DB(string $db_alias = 'db')
|
||||
{
|
||||
global $DBS;
|
||||
return $DBS->get_db_obj($db_alias);
|
||||
|
@ -138,7 +138,7 @@ function DB($db_alias = 'db')
|
|||
*/
|
||||
$CACHES = new TorrentPier\Legacy\Caches($bb_cfg);
|
||||
|
||||
function CACHE($cache_name)
|
||||
function CACHE(string $cache_name)
|
||||
{
|
||||
global $CACHES;
|
||||
return $CACHES->get_cache_obj($cache_name);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue