From: <sy...@us...> - 2006-01-16 14:18:13
|
Update of /cvsroot/tikiwiki/tiki In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv7038 Modified Files: Tag: BRANCH-1-9 tiki-tc.php Log Message: at least when theme control on categ pick up the first categ with theme control and not the first categ: todo: put an order to solve conflict Index: tiki-tc.php =================================================================== RCS file: /cvsroot/tikiwiki/tiki/tiki-tc.php,v retrieving revision 1.6.2.3 retrieving revision 1.6.2.4 diff -u -d -r1.6.2.3 -r1.6.2.4 --- tiki-tc.php 10 May 2005 15:15:19 -0000 1.6.2.3 +++ tiki-tc.php 16 Jan 2006 14:17:57 -0000 1.6.2.4 @@ -35,10 +35,14 @@ $tc_categs = $categlib->get_object_categories($cat_type, $cat_objid); if (count($tc_categs)) { - if ($cat_theme = $tcontrollib->tc_get_theme_by_categ($tc_categs[0])) - $tc_theme = $cat_theme; - $catt=$categlib->get_category($tc_categs[0]); - $smarty->assign_by_ref('category', $catt["name"]); + foreach ($tc_categs as $cat) { + if ($cat_theme = $tcontrollib->tc_get_theme_by_categ($cat)) { + $tc_theme = $cat_theme; + $catt=$categlib->get_category($cat); + $smarty->assign_by_ref('category', $catt["name"]); + break; + } + } } } |