The formated_list function in phpgwapi/inc/class.categories.inc.php was

renamed to formatted_list a while ago. There is no need to keep dead code
around.
This commit is contained in:
Patrick Bihan-Faou 2007-11-27 17:14:54 +00:00
parent b675c2b65b
commit bb20c359f2
5 changed files with 5 additions and 12 deletions

View File

@ -124,7 +124,7 @@
function formatted_list($data)
{
return $this->cats->formated_list($data['select'],$data['all'],$data['cat_parent'],True);
return $this->cats->formatted_list($data['select'],$data['all'],$data['cat_parent'],True);
}
function delete($cat_id,$subs=False)

View File

@ -449,13 +449,6 @@
}
return $s;
}
/**
* @deprecated use formatted_list
*/
function formated_list($format,$type='',$selected = '',$globals = False,$site_link = 'site')
{
return $this->formatted_list($format,$type,$selected,$globals,$site_link);
}
/**
* add a category

View File

@ -177,7 +177,7 @@
'lang_all' => lang('All'),
'lang_select' => lang('Select'),
'cat_field' => $cat_field,
'categories' => $GLOBALS['egw']->categories->formated_list('select','all',$cat_id,'True'),
'categories' => $GLOBALS['egw']->categories->formatted_list('select','all',$cat_id,'True'),
'hidden' => $GLOBALS['egw']->html->input_hidden(array(
'filter' => $this->_filter,
'qfield' => $this->_qfield,
@ -363,7 +363,7 @@
'lang_all' => lang('All'),
'lang_select' => lang('Select'),
'cat_field' => $cat_field,
'categories' => $GLOBALS['egw']->categories->formated_list('select','all',(int)$cat_id,'True'),
'categories' => $GLOBALS['egw']->categories->formatted_list('select','all',(int)$cat_id,'True'),
'hidden' => $GLOBALS['egw']->html->input_hidden(array(
'filter' => $this->_filter,
'qfield' => $this->_qfield,

View File

@ -101,7 +101,7 @@
function formatted_list($format,$type,$cat_parent,$global_cats)
{
return $this->cats->formated_list($format,$type,$cat_parent,$global_cats);
return $this->cats->formatted_list($format,$type,$cat_parent,$global_cats);
}
function delete($cat_id,$subs)

View File

@ -423,7 +423,7 @@
$type = 'mains';
}
$GLOBALS['egw']->template->set_var('category_list',$this->bo->cats->formated_list(array(
$GLOBALS['egw']->template->set_var('category_list',$this->bo->cats->formatted_list(array(
'type' => $type,'selected' => $cat['parent'],
'globals' => $global_cats, 'self' => $cat_id
)));