summaryrefslogtreecommitdiff
path: root/lib/util.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@controlyourself.ca>2009-03-08 11:49:34 -0700
committerEvan Prodromou <evan@controlyourself.ca>2009-03-08 11:49:34 -0700
commite55808698bedb489e8f9b6d46a81dceb0e32e07d (patch)
treea3b94931bf1af0e43bab6146dff87939b2b48e83 /lib/util.php
parent2133d5a4e7fc694b097fe65282e557d99ee109ad (diff)
use call_user_func for callbacks
Diffstat (limited to 'lib/util.php')
-rw-r--r--lib/util.php2
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);