From 34dbe7111b03874a70e60229522124c79f45f19e Mon Sep 17 00:00:00 2001
From: chris <chris@jalakai.co.uk>
Date: Tue, 6 Feb 2007 02:44:28 +0100
Subject: [PATCH] alter search callback to use call_user_func()

darcs-hash:20070206014428-9b6ab-1bcc1a005850b2048b49a7667dd25905f8a79ae2.gz
---
 inc/html.php | 13 +++----------
 1 file changed, 3 insertions(+), 10 deletions(-)

diff --git a/inc/html.php b/inc/html.php
index 31ddf7631..01a796bf7 100644
--- a/inc/html.php
+++ b/inc/html.php
@@ -765,17 +765,10 @@ function html_buildlist($data,$class,$func,$lifunc='html_li_default'){
     $level = $item['level'];
 
     //print item
-    if(is_array($lifunc)){
-      $ret .= $lifunc[0]->$lifunc[1]($item); //user object method
-    }else{
-      $ret .= $lifunc($item); //user function
-    }
+    $ret .= call_user_func($lifunc,$item);
     $ret .= '<div class="li">';
-    if(is_array($func)){
-      $ret .= $func[0]->$func[1]($item); //user object method
-    }else{
-    $ret .= $func($item); //user function
-    }
+
+    $ret .= call_user_func($func,$item);
     $ret .= '</div>';
   }
 
-- 
GitLab