Changeset 1119 for trunk/include/functions_url.inc.php
- Timestamp:
- Apr 3, 2006, 12:26:19 AM (18 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/include/functions_url.inc.php
r1109 r1119 259 259 $section_string = ''; 260 260 261 $section_of = array( 262 'category' => 'categories', 263 'tags' => 'tags', 264 'list' => 'list', 265 'search' => 'search', 266 ); 267 268 foreach ($section_of as $param => $section) 269 { 270 if (isset($params[$param])) 271 { 272 $params['section'] = $section; 273 } 274 } 275 261 276 if (!isset($params['section'])) 262 277 { 263 if (isset($params['category']))264 {265 $params['section'] = 'categories';266 }267 else if (isset($params['tags']))268 {269 $params['section'] = 'tags';270 }271 else if (isset($params['list']))272 {273 $params['section'] = 'list';274 }275 else if (isset($params['search']))276 {277 $params['section'] = 'search';278 }279 }280 281 if (!isset($params['section']))282 {283 278 $params['section'] = 'categories'; 284 279 } … … 290 285 if (!isset($params['category'])) 291 286 { 292 //$section_string.= '/categories';287 $section_string.= '/categories'; 293 288 } 294 289 else … … 310 305 foreach ($params['tags'] as $tag) 311 306 { 312 $section_string.= '/'.$tag; 307 $section_string.= '/'.$tag['id']; 308 309 if (isset($tag['url_name'])) 310 { 311 $section_string.= '-'.$tag['url_name']; 312 } 313 313 } 314 314
Note: See TracChangeset
for help on using the changeset viewer.