diff --git a/preferences/inc/class.bocategories.inc.php b/preferences/inc/class.bocategories.inc.php index 271edd557e..07aab07919 100644 --- a/preferences/inc/class.bocategories.inc.php +++ b/preferences/inc/class.bocategories.inc.php @@ -101,9 +101,9 @@ return $this->cats->exists($data['type'],$data['cat_name'],$data['cat_id']); } - function formatted_list($format,$type,$cat_parent,$public_cats) + function formatted_list($format,$type,$cat_parent,$global_cats) { - return $this->cats->formated_list($format,$type,$cat_parent,$public_cats); + return $this->cats->formated_list($format,$type,$cat_parent,$global_cats); } function delete($cat_id,$subs) diff --git a/preferences/inc/class.uicategories.inc.php b/preferences/inc/class.uicategories.inc.php index bc1981e49d..f305f5a660 100644 --- a/preferences/inc/class.uicategories.inc.php +++ b/preferences/inc/class.uicategories.inc.php @@ -53,7 +53,6 @@ 'sort' => $this->sort, 'order' => $this->order ); - $this->bo->save_sessiondata($data,$cats_app); } @@ -76,7 +75,6 @@ $this->t->set_var('lang_reset',lang('Clear Form')); } - function cat_data($edata,$data) { for ($j=0;$jstrip_html($cats[$i]['name']) . '' . $appendix; $descr = '' . $descr . ''; - $data = '' . $data . ''; } $this->t->set_var(array('name' => $name, @@ -227,8 +224,8 @@ } else { - $t->set_var('add_sub',''); - $t->set_var('lang_sub_entry',' '); + $this->t->set_var('add_sub',''); + $this->t->set_var('lang_sub_entry',' '); } $link_data['cat_id'] = $cats[$i]['id']; @@ -261,7 +258,7 @@ function add() { - global $cats_app, $extra, $global_cats, $cats_level, $cat_data; + global $cats_app, $extra, $global_cats, $cats_level; $link_data = array ( @@ -368,7 +365,7 @@ function edit() { - global $cats_app, $extra, $global_cats, $cats_level, $cat_id, $cat_data; + global $cats_app, $extra, $global_cats, $cats_level, $cat_id; $link_data = array ( @@ -393,7 +390,7 @@ $cat_parent = $GLOBALS['HTTP_POST_VARS']['cat_parent']; $cat_name = $GLOBALS['HTTP_POST_VARS']['cat_name']; $cat_description = $GLOBALS['HTTP_POST_VARS']['cat_description']; - // $cat_data = $GLOBALS['HTTP_POST_VARS']['cat_data']; + $cat_data = $GLOBALS['HTTP_POST_VARS']['cat_data']; $cat_access = $GLOBALS['HTTP_POST_VARS']['cat_access']; $this->t->set_file(array('form' => 'category_form.tpl')); @@ -470,7 +467,6 @@ $edata = explode(',',$extra); $data = unserialize($cats[0]['data']); - $cat_data = array(); for($i=0;$it->set_var('td_data','');