From 1573c1063197ed28e99cd328ad24232010dbfabc Mon Sep 17 00:00:00 2001 From: Rainulf Pineda Date: Wed, 25 Jul 2012 21:38:28 -0400 Subject: [PATCH] Fixed syntax error in usage of anonymous function. --- include/diaspora.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/include/diaspora.php b/include/diaspora.php index cea66db0c0..a23c11bd21 100755 --- a/include/diaspora.php +++ b/include/diaspora.php @@ -2156,9 +2156,9 @@ function diaspora_send_status($item,$owner,$contact,$public_batch = false) { /** * Transform #tags, strip off the [url] and replace spaces with underscore */ - $body = preg_replace_callback('/#\[url\=(\w+.*?)\](\w+.*?)\[\/url\]/i', function($match) { - return '#'. str_replace(' ', '_', $match[2]); - }, $body); + $body = preg_replace_callback('/#\[url\=(\w+.*?)\](\w+.*?)\[\/url\]/i', create_function('$match', + 'return \'#\'. str_replace(\' \', \'_\', $match[2]);' + ), $body); //if(strlen($title)) // $body = "[b]".html_entity_decode($title)."[/b]\n\n".$body; -- 2.39.5