Remove unnecessary variables from format_birthday() & clean-up

This commit is contained in:
Marc Alexander
2012-08-09 15:02:39 +02:00
parent 1ea5e2bfd7
commit 2b100c2792

View File

@@ -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))