diff --git a/library/ajax/index_data.php b/library/ajax/index_data.php
index 3f111d93..856361d5 100644
--- a/library/ajax/index_data.php
+++ b/library/ajax/index_data.php
@@ -10,35 +10,39 @@ $html = '';
switch($mode)
{
case 'birthday_week':
- $stats = $datastore->get('stats');
$datastore->enqueue(array(
'stats',
));
+ $users = array();
+ $stats = $datastore->get('stats');
+
if ($stats['birthday_week_list'])
{
foreach($stats['birthday_week_list'] as $week)
{
- $html[] = profile_url($week) .' ('. birthday_age(date('Y-m-d', strtotime('-1 year', strtotime($week['user_birthday'])))) .')';
+ $users[] = profile_url($week) .' ('. birthday_age(date('Y-m-d', strtotime('-1 year', strtotime($week['user_birthday'])))) .')';
}
- $html = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], join(', ', $html));
+ $html = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], join(', ', $users));
}
else $html = sprintf($lang['NOBIRTHDAY_WEEK'], $bb_cfg['birthday_check_day']);
break;
case 'birthday_today':
- $stats = $datastore->get('stats');
$datastore->enqueue(array(
'stats',
));
+ $users = array();
+ $stats = $datastore->get('stats');
+
if ($stats['birthday_today_list'])
{
foreach($stats['birthday_today_list'] as $today)
{
- $html[] = profile_url($today) .' ('. birthday_age($today['user_birthday']) .')';
+ $users[] = profile_url($today) .' ('. birthday_age($today['user_birthday']) .')';
}
- $html = $lang['BIRTHDAY_TODAY'] . join(', ', $html);
+ $html = $lang['BIRTHDAY_TODAY'] . join(', ', $users);
}
else $html = $lang['NOBIRTHDAY_TODAY'];
break;
diff --git a/library/config.php b/library/config.php
index b88b45a0..6dbe1d14 100644
--- a/library/config.php
+++ b/library/config.php
@@ -72,9 +72,9 @@ $domain_name = 'torrentpier.com'; // enter here your primary domain name of your
$domain_name = (!empty($_SERVER['SERVER_NAME'])) ? $_SERVER['SERVER_NAME'] : $domain_name;
// Version info
-$bb_cfg['tp_version'] = '2.1.5';
-$bb_cfg['tp_release_date'] = '06-12-2014';
-$bb_cfg['tp_release_state'] = 'ALPHA';
+$bb_cfg['tp_version'] = '2.1.5-2023.03';
+$bb_cfg['tp_release_date'] = '04-04-2023';
+$bb_cfg['tp_release_state'] = 'LTS';
$bb_cfg['tp_zf_version'] = '2.3.3';
// Database
@@ -84,7 +84,7 @@ $pconnect = false;
// Настройка баз данных ['db']['srv_name'] => (array) srv_cfg;
// порядок параметров srv_cfg (хост, название базы, пользователь, пароль, charset, pconnect);
$bb_cfg['db'] = array(
- 'db1' => array('localhost', 'tp_215', 'user', 'pass', $charset, $pconnect),
+ 'db1' => array('localhost', 'tp_215_lts', 'user', 'pass', $charset, $pconnect),
//'db2' => array('localhost2', 'dbase2', 'user2', 'pass2', $charset, $pconnect),
//'db3' => array('localhost3', 'dbase3', 'user2', 'pass3', $charset, $pconnect),
);
diff --git a/library/includes/core/caches.php b/library/includes/core/caches.php
index ac10299c..f0369285 100644
--- a/library/includes/core/caches.php
+++ b/library/includes/core/caches.php
@@ -85,6 +85,7 @@ class CACHES
$this->ref[$cache_name] =& $this->obj[$cache_name];
break;
+ case 'filecache':
default: //filecache
if (!isset($this->obj[$cache_name]))
{