forked from extern/egroupware
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:
parent
abe7b743ed
commit
5739976dfd
@ -250,6 +250,18 @@
|
||||
*/
|
||||
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);
|
||||
|
||||
if (!is_array($selected))
|
||||
|
Loading…
Reference in New Issue
Block a user