mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Minor fixes (#654)
* Minor fixes * Removed WTF statement * Fixed broken birthday applying in profile.php * Removed double-quotes
This commit is contained in:
parent
8685ba598d
commit
5d9955cd78
8 changed files with 17 additions and 14 deletions
|
@ -23,11 +23,13 @@ switch ($mode) {
|
|||
'stats',
|
||||
));
|
||||
|
||||
$users = [];
|
||||
|
||||
if ($stats['birthday_week_list']) {
|
||||
foreach ($stats['birthday_week_list'] as $week) {
|
||||
$html[] = profile_url($week) . ' <span class="small">(' . birthday_age($week['user_birthday']) . ')</span>';
|
||||
$users[] = profile_url($week) . ' <span class="small">(' . birthday_age($week['user_birthday']) . ')</span>';
|
||||
}
|
||||
$html = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], implode(', ', $html));
|
||||
$html = sprintf($lang['BIRTHDAY_WEEK'], $bb_cfg['birthday_check_day'], implode(', ', $users));
|
||||
} else {
|
||||
$html = sprintf($lang['NOBIRTHDAY_WEEK'], $bb_cfg['birthday_check_day']);
|
||||
}
|
||||
|
@ -39,11 +41,13 @@ switch ($mode) {
|
|||
'stats',
|
||||
));
|
||||
|
||||
$users = [];
|
||||
|
||||
if ($stats['birthday_today_list']) {
|
||||
foreach ($stats['birthday_today_list'] as $today) {
|
||||
$html[] = profile_url($today) . ' <span class="small">(' . birthday_age($today['user_birthday']) . ')</span>';
|
||||
$users[] = profile_url($today) . ' <span class="small">(' . birthday_age($today['user_birthday']) . ')</span>';
|
||||
}
|
||||
$html = $lang['BIRTHDAY_TODAY'] . implode(', ', $html);
|
||||
$html = $lang['BIRTHDAY_TODAY'] . implode(', ', $users);
|
||||
} else {
|
||||
$html = $lang['NOBIRTHDAY_TODAY'];
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue