Should be backwards compatible! Will now allow the formated_list() method to be called by ExecMethod(). This is now done by setting the format variable equal to an associated array.

This commit is contained in:
skeeter 2001-12-29 19:31:52 +00:00
parent abe7b743ed
commit 5739976dfd

View File

@ -250,6 +250,18 @@
*/ */
function formated_list($format,$type,$selected = '',$public = False,$site_link = 'site') function formated_list($format,$type,$selected = '',$public = False,$site_link = 'site')
{ {
if(is_array($format))
{
$temp_format = $format['format'];
$type = $format['type'];
$selected = (isset($format['selected'])?$format['selected']:'');
$public = (isset($format['public'])?$format['public']:False);
$site_link = (isset($format['site_link'])?$format['site_link']:'site');
settype($format,'string');
$format = $temp_format;
unset($temp_format);
}
$filter = $this->filter($type); $filter = $this->filter($type);
if (!is_array($selected)) if (!is_array($selected))