diff options
author | Evan Prodromou <evan@controlyourself.ca> | 2009-03-08 11:49:34 -0700 |
---|---|---|
committer | Evan Prodromou <evan@controlyourself.ca> | 2009-03-08 11:49:34 -0700 |
commit | e55808698bedb489e8f9b6d46a81dceb0e32e07d (patch) | |
tree | a3b94931bf1af0e43bab6146dff87939b2b48e83 /lib | |
parent | 2133d5a4e7fc694b097fe65282e557d99ee109ad (diff) |
use call_user_func for callbacks
Diffstat (limited to 'lib')
-rw-r--r-- | lib/util.php | 2 |
1 files changed, 1 insertions, 1 deletions
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); |