]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
use call_user_func for callbacks
authorEvan Prodromou <evan@controlyourself.ca>
Sun, 8 Mar 2009 18:49:34 +0000 (11:49 -0700)
committerEvan Prodromou <evan@controlyourself.ca>
Sun, 8 Mar 2009 18:49:34 +0000 (11:49 -0700)
lib/util.php

index 221175ccd252e8b585cc400110bc4c9590b021f6..ca9006d64e47336a07a49e3ee10a707c871d98b1 100644 (file)
@@ -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);