Changeset 1092 for trunk/picture.php
- Timestamp:
- Mar 22, 2006, 2:01:47 AM (19 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/picture.php
r1090 r1092 169 169 case 'rate' : 170 170 { 171 rate_picture($ user['id'], $page['image_id'], $_GET['rate']);171 rate_picture($page['image_id'], $_GET['rate']); 172 172 redirect($url_self); 173 173 } … … 371 371 372 372 $title_img = $picture['current']['name']; 373 if ( isset( $page['cat '] ) )374 { 375 if (is_numeric( $page['cat '] ))373 if ( isset( $page['category'] ) ) 374 { 375 if (is_numeric( $page['category'] )) 376 376 { 377 377 $title_img = replace_space(get_cat_display_name($page['cat_name'])); 378 378 } 379 379 else if ( $page['cat'] == 'search' ) 380 { 380 { // ??? TODO -remove or change some remainings from old variables 381 381 $title_img = replace_search( $title_img, $_GET['search'] ); 382 382 } … … 405 405 406 406 // metadata 407 $url_metadata = duplicate_picture_URL(); 407 408 if ($conf['show_exif'] or $conf['show_iptc']) 408 409 { 409 410 $metadata_showable = true; 411 if ( !isset($_GET['metadata']) ) 412 { 413 $url_metadata = add_url_param( $url_metadata, 'metadata' ); 414 } 410 415 } 411 416 else … … 413 418 $metadata_showable = false; 414 419 } 415 416 // $url_metadata = PHPWG_ROOT_PATH.'picture.php';417 // $url_metadata .= get_query_string_diff(array('add_fav', 'slideshow', 'show_metadata'));418 // if ($metadata_showable and !isset($_GET['show_metadata']))419 // {420 // $url_metadata.= '&show_metadata=1';421 // }422 423 // TODO: rewrite metadata display to toggle on/off user_infos.show_metadata424 $url_metadata = duplicate_picture_URL();425 420 426 421 $page['body_id'] = 'thePicturePage';
Note: See TracChangeset
for help on using the changeset viewer.