Bulent Tekcan
05-16-2017, 12:31 PM
Hello
I'm using this code in class_bbcode.php. This is for IMG to URL convert
// Start IMG to URL BBCode Converter
if ($this->contains_bbcode_img_tags($message))
{
$message = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\$this->handle_bbcode_url(str_replace('\\\"', '\"', '\\1'), '')", $message);
}
// End IMG to URL BBCode ConverterBut I get this error from php
PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/includes/class_bbcode.php on line 1866
Any idea what is the problem in that code ? Before my php is old and I never see any problem.
Regards
I'm using this code in class_bbcode.php. This is for IMG to URL convert
// Start IMG to URL BBCode Converter
if ($this->contains_bbcode_img_tags($message))
{
$message = preg_replace('#\[img\]\s*(https?://([^<>*"]+|[a-z0-9/\\._\- !]+))\[/img\]#iUe', "\$this->handle_bbcode_url(str_replace('\\\"', '\"', '\\1'), '')", $message);
}
// End IMG to URL BBCode ConverterBut I get this error from php
PHP Deprecated: preg_replace(): The /e modifier is deprecated, use preg_replace_callback instead in /home/includes/class_bbcode.php on line 1866
Any idea what is the problem in that code ? Before my php is old and I never see any problem.
Regards