MyBB Community Forums

Full Version: [F] incorrect unapproved attachment count
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
This code in /inc/functions_post.php shouldn't modify the language variables because doing so might interfere with subsequent posts...

if($validationcount == 1)
{
	$lang->postbit_unapproved_attachments = $lang->postbit_unapproved_attachment;
}
else
{
	$lang->postbit_unapproved_attachments = $lang->sprintf($lang->postbit_unapproved_attachments, $validationcount);
}

For example, if post #1 in a thread has 1 unapproved attachment and post #2 has 5, they will both say "1 unapproved attachment."
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.