From e55808698bedb489e8f9b6d46a81dceb0e32e07d Mon Sep 17 00:00:00 2001 From: Evan Prodromou Date: Sun, 8 Mar 2009 11:49:34 -0700 Subject: use call_user_func for callbacks --- lib/util.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib') diff --git a/lib/util.php b/lib/util.php index 221175ccd..ca9006d64 100644 --- a/lib/util.php +++ b/lib/util.php @@ -467,7 +467,7 @@ function common_replace_urls_callback($text, $callback) { $url = (mb_strpos($orig_url, htmlspecialchars($url)) === FALSE) ? $url:htmlspecialchars($url); // Call user specified func - $modified_url = $callback($url); + $modified_url = call_user_func($callback, $url); // Replace it! $start = mb_strpos($text, $url, $offset); -- cgit v1.2.3-54-g00ecf