WIP: Cumulative update (#685)

* Use lang variables instead of strings

* [Cache/Datastore] Use switch constructions

* Removed old-style debug from SQL wrapper

* Removed useless functions

* Use bb_date instead of native function
This commit is contained in:
Roman Kelesidis 2023-04-18 23:08:57 +07:00 committed by GitHub
commit 4ff334bb45
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
11 changed files with 49 additions and 103 deletions

View file

@ -542,14 +542,6 @@ function url_arg($url, $arg, $value, $amp = '&')
return $url . $anchor;
}
/**
* Adds commas between every group of thousands
*/
function commify($number)
{
return number_format($number);
}
/**
* Returns a size formatted in a more human-friendly format, rounded to the nearest GB, MB, KB..
*/
@ -2140,7 +2132,7 @@ function user_birthday_icon($user_birthday, $user_id): string
$current_date = bb_date(TIMENOW, 'md', false);
$user_birthday = ($user_id != GUEST_UID && !empty($user_birthday) && $user_birthday != '1900-01-01')
? date('md', strtotime($user_birthday)) : false;
? bb_date(strtotime($user_birthday), 'md', false) : false;
return ($bb_cfg['birthday_enabled'] && $current_date == $user_birthday) ? '<img src="' . $images['icon_birthday'] . '" alt="" title="' . $lang['HAPPY_BIRTHDAY'] . '" border="0" />' : '';
}