Changeset 1866 for trunk/include/functions_url.inc.php
- Timestamp:
- Feb 28, 2007, 4:07:12 AM (17 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_url.inc.php
r1861 r1866 337 337 ); 338 338 339 $section_string.= '/category/'.$params['category']['id']; 340 if ( $conf['category_url_style']=='id-name' ) 339 array_key_exists('permalink', $params['category']) or trigger_error( 340 'make_section_in_url category permalink not set', E_USER_WARNING 341 ); 342 343 $section_string.= '/category/'; 344 if ( empty($params['category']['permalink']) ) 341 345 { 342 $section_string.= '-'.str2url($params['category']['name']); 346 $section_string.= $params['category']['id']; 347 if ( $conf['category_url_style']=='id-name' ) 348 { 349 $section_string.= '-'.str2url($params['category']['name']); 350 } 351 } 352 else 353 { 354 $section_string.= $params['category']['permalink']; 343 355 } 344 356 }
Note: See TracChangeset
for help on using the changeset viewer.