MyBB Community Forums

Full Version: [F] Typo in profile. [C-Chris]
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Not sure if this is global in MyBB or just on these forums, staff can move where appropriate.

Anyway, look at my profile: http://community.mybboard.net/user-25.html

Quote:Date of Birth: Mararch 16th, 1988 (20 years old)

Just something small and trivial I noticed.
brrr ... lousy smarch weather
It's just on these forums. My global.lang.php is showing it as "March"
Thank you for your bug report.

This bug has been fixed in our internal code repository. Please note that the problem will not be fixed here until these forums are updated.

With regards,
MyBB Group
It wasn't so much a typo but str_replace bleeding in the array loop

// This needs to be in this specific order
	$find = array(
		'm',
		'd',
		'y',
		'Y',
		'j',
		'S',
		'l',
		'F',
		'M',
	);

	$replace = array(
		sprintf('%02s', $bm),
		sprintf('%02s', $bd),
		my_substr($by, 2),
		$by,
		($bd[0] == 0 ? my_substr($bd, 1) : $bd),
		($bd == 1 || $bd == 21 || $bd == 31 ? 'st' : ($bd == 2 || $bd == 22 ? 'nd' : ($bd == 3 || $bd == 23 ? 'rd' : 'th'))),
		$bdays[$wd],
		$bmonth[$bm-1],
		($bm == 9 ? my_substr($bmonth[$bm-1], 0, 4) :  my_substr($bmonth[$bm-1], 0, 3)),
	);