TickTackk
Well-known member
I completely overlooked that
Try:
$htmlMaxLength
is set to -1
by default so it's not really going to work because -1 * 60
will return -60
which wouldn't really do anything good as XF does this check:
PHP:
if ($htmlMaxLength < 0)
{
Try:
PHP:
public function convertToBbCode($html, $htmlMaxLength = -1)
{
if ($htmlMaxLength < 0)
{
$htmlMaxLength = 60 * $this->options()->messageMaxLength;
}
return parent::convertToBbCode($html, $htmlMaxLength);
}