[Webbinder-commits] root tiki-browse_categories.php,1.4,1.5
Brought to you by:
jasondiceman,
sylvieg
|
From: Sylvie G. <sy...@us...> - 2006-06-14 21:08:23
|
Update of /cvsroot/webbinder/root In directory sc8-pr-cvs9.sourceforge.net:/tmp/cvs-serv5549 Modified Files: tiki-browse_categories.php Log Message: can give a list of parentIds to category browse: parentId[]=1&parentId[]=2 Index: tiki-browse_categories.php =================================================================== RCS file: /cvsroot/webbinder/root/tiki-browse_categories.php,v retrieving revision 1.4 retrieving revision 1.5 diff -C2 -d -r1.4 -r1.5 *** tiki-browse_categories.php 23 Sep 2005 21:38:27 -0000 1.4 --- tiki-browse_categories.php 14 Jun 2006 21:08:19 -0000 1.5 *************** *** 76,95 **** } ! // If the parent category is not zero get the category path ! if ($_REQUEST["parentId"]) { ! $path = $categlib->get_category_path($_REQUEST["parentId"]); ! ! $p_info = $categlib->get_category($_REQUEST["parentId"]); ! $father = $p_info["parentId"]; ! $smarty->assign_by_ref('p_info', $p_info); } else { ! $path = tra("TOP"); ! ! $father = 0; } - $smarty->assign('path', $path); - $smarty->assign('father', $father); - $ctall = $categlib->get_all_categories_respect_perms($user, 'tiki_p_view_categories'); --- 76,99 ---- } ! if (is_array($_REQUEST['parentId'])) { ! foreach ($_REQUEST['parentId'] as $p) { ! $paths[] = $categlib->get_category_path($p); ! } ! $smarty->assign('paths', $paths); } else { ! // If the parent category is not zero get the category path ! if ($_REQUEST["parentId"]) { ! $path = $categlib->get_category_path($_REQUEST["parentId"]); ! $p_info = $categlib->get_category($_REQUEST["parentId"]); ! $father = $p_info["parentId"]; ! $smarty->assign_by_ref('p_info', $p_info); ! } else { ! $path = tra("TOP"); ! $father = 0; ! } ! $smarty->assign('path', $path); ! $smarty->assign('father', $father); } $ctall = $categlib->get_all_categories_respect_perms($user, 'tiki_p_view_categories'); |