Remove unnecessary variables from format_birthday() & clean-up
This commit is contained in:
@@ -529,9 +529,9 @@ function generate_portal_pagination($base_url, $num_items, $per_page, $start_ite
|
||||
function format_birthday($date, $format = false)
|
||||
{
|
||||
global $user;
|
||||
$time->time_now = time();
|
||||
|
||||
$lang_dates = $user->lang['datetime'];
|
||||
$format = (!$format) ? $time->date_format : $format;
|
||||
$format = (!$format) ? $user->data['user_dateformat'] : $format;
|
||||
|
||||
// Short representation of month in format
|
||||
if ((strpos($format, '\M') === false && strpos($format, 'M') !== false) || (strpos($format, '\r') === false && strpos($format, 'r') !== false))
|
||||
|
||||
Reference in New Issue
Block a user