diff options
author | chris <chris@jalakai.co.uk> | 2007-02-06 02:44:28 +0100 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2007-02-06 02:44:28 +0100 |
commit | 34dbe7111b03874a70e60229522124c79f45f19e (patch) | |
tree | 1c074e570aaec6f8a7b9fc55c4a25db9c06272a3 /inc | |
parent | d7d7bed5123f9fada3910c2fac1c862f530567c1 (diff) | |
download | rpg-34dbe7111b03874a70e60229522124c79f45f19e.tar.gz rpg-34dbe7111b03874a70e60229522124c79f45f19e.tar.bz2 |
alter search callback to use call_user_func()
darcs-hash:20070206014428-9b6ab-1bcc1a005850b2048b49a7667dd25905f8a79ae2.gz
Diffstat (limited to 'inc')
-rw-r--r-- | inc/html.php | 13 |
1 files 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>'; } |