MyBB Community Forums
[F] Typo in profile. [C-Chris] - Printable Version

+- MyBB Community Forums (https://community.mybb.com)
+-- Forum: Community Archive (https://community.mybb.com/forum-106.html)
+--- Forum: Archived Forums (https://community.mybb.com/forum-143.html)
+---- Forum: Archived Development and Support (https://community.mybb.com/forum-155.html)
+----- Forum: Archived Bug Reports (https://community.mybb.com/forum-74.html)
+------ Forum: MyBB 1.4.4 (https://community.mybb.com/forum-110.html)
+------ Thread: [F] Typo in profile. [C-Chris] (/thread-41809.html)



[F] Typo in profile. [C-Chris] - Ryan Ashbrook - 12-11-2008

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.


RE: Typo in profile. - brad-t - 12-12-2008

brrr ... lousy smarch weather


RE: Typo in profile. - DougSD - 12-13-2008

It's just on these forums. My global.lang.php is showing it as "March"


[F] Typo in profile. - Ryan Gordon - 12-13-2008

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


RE: [F] Typo in profile. - Ryan Gordon - 12-13-2008

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)),
	);