Changeset 1082 for trunk/include/functions_html.inc.php
- Timestamp:
- Mar 15, 2006, 11:44:35 PM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_html.inc.php
r1040 r1082 248 248 */ 249 249 function get_cat_display_name($cat_informations, 250 $url = 'category.php? cat=',250 $url = 'category.php?/category/', 251 251 $replace_space = true) 252 252 { … … 301 301 */ 302 302 function get_cat_display_name_cache($uppercats, 303 $url = 'category.php? cat=',303 $url = 'category.php?/category/', 304 304 $replace_space = true) 305 305 { … … 356 356 357 357 /** 358 * returns the HTML code for a category item in the menu (for category.php)358 * returns the HTML code for a category item in the menu (for the main page) 359 359 * 360 360 * HTML code generated uses logical list tags ul and each category is an … … 375 375 // $page_cat value remains 0 for special sections 376 376 $page_cat = 0; 377 if (isset($page['cat']) and is_numeric($page['cat']) ) 378 { 379 $page_cat = $page['cat']; 380 } 377 if (isset($page['category'])) 378 { 379 $page_cat = $page['category']; 380 } 381 381 382 foreach ($categories as $category) 382 383 { … … 405 406 $menu.= '>'; 406 407 407 $url = PHPWG_ROOT_PATH.'category.php?cat='.$category['id']; 408 $url = make_index_url(array('category' => $category['id'])); 409 408 410 $menu.= "\n".'<a href="'.$url.'"'; 409 411 if ($page_cat != 0 … … 467 469 468 470 function get_cat_display_name_from_id($cat_id, 469 $url = 'category.php? cat=',471 $url = 'category.php?/category/', 470 472 $replace_space = true) 471 473 {
Note: See TracChangeset
for help on using the changeset viewer.