Quote:
Originally Posted by iJosh
Hello,
Can anyone help me?
When ever I view a tournament I get the following error:
Warning: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in ..../includes/functions_tal.php on line 1168
php ver: 5.59
any help?
|
Change line 1168 as follows:
Original:
Code:
$userhtml = preg_replace('|\{([a-zA-Z0-9_-]*)\}|e', ' $userinfo["$1"] ', $vbulletin->options['tmnt_userhtml']);
New Version:
Code:
$userhtml = preg_replace_callback('|\{([a-zA-Z0-9_-]*)\}', function($m){return $userinfo[$m[1]];}, $vbulletin->options['tmnt_userhtml']);