Changeset 642 for trunk/picture.php


Ignore:
Timestamp:
Dec 12, 2004, 10:06:39 PM (19 years ago)
Author:
plg
Message:
  • in admin menu, status option for categories is not "permissions" but "private or public" choice = different language item
  • get_cat_display_name changed : use $conflevel_separator to unify presentation
  • default values for category properties commentable, uploadable, status and visible (set in include/config.inc.php) used for category creation (admin/update, admin/remote_site, admin/cat_list)
  • use mass_inserts in admin/update for inserting new categories
  • only one query for counting the number of sub categories in admin/cat_list
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/picture.php

    r639 r642  
    349349      if ( $conf['mail_notification'] )
    350350      {
    351         $cat_name = get_cat_display_name( $page['cat_name'], ' > ', '' );
     351        // locally, we change the $conf['level_separator']
     352        $conf_separator = $conf['level_separator'];
     353        $conf['level_separator'] = ' > ';
     354        $cat_name = get_cat_display_name($page['cat_name'], '');
     355        $conf['level_separator'] = $conf_separator;
     356       
    352357        $cat_name = strip_tags( $cat_name );
    353358        notify( 'comment', $cat_name.' > '.$picture['current']['name']);
     
    390395if (is_numeric( $page['cat'] ))
    391396{
    392   $title_img = replace_space(get_cat_display_name($page['cat_name'],' > '));
     397  $title_img = replace_space(get_cat_display_name($page['cat_name']));
    393398  $n = $page['num'] + 1;
    394399  $title_nb = $n.'/'.$page['cat_nb_images'];
     
    443448  'WIDTH_IMG' => $picture_size[0],
    444449  'HEIGHT_IMG' => $picture_size[1],
     450
     451  'LEVEL_SEPARATOR' => $conf['level_separator'],
    445452
    446453  'L_HOME' => $lang['home'],
     
    769776  if (count($cat_array) > 3)
    770777  {
    771     $cat_output .= get_cat_display_name_cache($category['uppercats'],
    772                                               ' → ');
     778    $cat_output .= get_cat_display_name_cache($category['uppercats']);
    773779  }
    774780  else
    775781  {
    776782    $cat_info = get_cat_info($category['category_id']);
    777     $cat_output .= get_cat_display_name($cat_info['name'], ' → ');
     783    $cat_output .= get_cat_display_name($cat_info['name']);
    778784  }
    779785  // the picture is commentable if it belongs at least to one category which
Note: See TracChangeset for help on using the changeset viewer.