I have a preg_replace_callback
function and when i open my webpage, i get the following warning:
Warning: preg_replace_callback(): Requires argument 2, 'stripslashes(strstr("\2\5","rel=\class=") ? "\1" :
This is my function:
function ace_colorbox_replace($string) {
$pattern = '/(<a(.*?)href="([^"]*.)'.IMAGE_FILETYPE.'"(.*?)><img)/ie';
$result = 'stripslashes(strstr("\2\5","rel=\class=") ? "\1" : "<a\2href=\"\3\4\"\5 rel=\"colorbox\" class=\"colorbox\"><img")';
return preg_replace_callback($pattern, $callback, $string);
}
Can someone please help me?
Thanks
Br Robert