Changeset 1128 for trunk/picture.php


Ignore:
Timestamp:
Apr 5, 2006, 10:55:26 PM (18 years ago)
Author:
plg
Message:

improvement: on picture.php, show title calculated in
include/section_init.inc.php instead of nothing.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r1119 r1128  
    371371}
    372372
    373 $title_img = $picture['current']['name'];
    374 if ( isset( $page['category'] ) )
    375 {
    376   if (is_numeric( $page['category'] ))
    377   {
    378     $title_img = replace_space(get_cat_display_name($page['cat_name']));
    379   }
    380   else if ( $page['cat'] == 'search' )
    381   { // ??? TODO -remove or change some remainings from old variables
    382     $title_img = replace_search( $title_img, $_GET['search'] );
    383   }
    384 }
    385373$title_nb = ($page['current_rank'] + 1).'/'.$page['cat_nb_images'];
    386374
     
    443431$template->assign_vars(
    444432  array(
    445     'CATEGORY' => $title_img,
     433    'SECTION_TITLE' => $page['title'],
     434    'PICTURE_TITLE' => $picture['current']['name'],
    446435    'PHOTO' => $title_nb,
    447436    'TITLE' => $picture['current']['name'],
     
    780769}
    781770//------------------------------------------------------------ log informations
    782 pwg_log( 'picture', $title_img, $picture['current']['file'] );
     771pwg_log('picture', $page['title'], $picture['current']['file']);
    783772
    784773$template->parse('picture');
Note: See TracChangeset for help on using the changeset viewer.