Changeset 660


Ignore:
Timestamp:
Dec 28, 2004, 5:31:58 PM (19 years ago)
Author:
plg
Message:
  • bugs fixed in filesystem synchronization : if no existing category at start, need to initialize $next_rankNULL, $next_id and $next_element_id
  • bug fixed : if no queries executed on the page, $count_queries and $queries_time are not initialized for page bottom display
Location:
trunk
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/update.php

    r659 r660  
    116116
    117117  // finding next rank for each id_uppercat
     118  $next_rank['NULL'] = 1;
     119 
    118120  $query = '
    119121SELECT id_uppercat, MAX(rank)+1 AS next_rank
     
    134136  // next category id available
    135137  $query = '
    136 SELECT MAX(id)+1 AS next_id
     138SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_id
    137139  FROM '.CATEGORIES_TABLE.'
    138140;';
     
    297299  // next element id available
    298300  $query = '
    299 SELECT MAX(id)+1 AS next_element_id
     301SELECT IF(MAX(id)+1 IS NULL, 1, MAX(id)+1) AS next_element_id
    300302  FROM '.IMAGES_TABLE.'
    301303;';
  • trunk/include/page_tail.php

    r659 r660  
    4141if ($conf['show_gt'])
    4242{
    43   $time = get_elapsed_time( $t2, get_moment() );
     43  $time = get_elapsed_time($t2, get_moment());
     44
     45  if (!isset($count_queries))
     46  {
     47    $count_queries = 0;
     48    $queries_time = 0;
     49  }
    4450 
    4551  $template->assign_block_vars(
  • trunk/language/en_UK.iso-8859-1/admin.lang.php

    r659 r660  
    266266$lang['update_missing_tn'] = 'the thumbnail is missing for';
    267267$lang['update_missing_tn_short'] = 'missing thumbnail';
    268 $lang['update_missing_tn_info'] = 'a picture filetype requires a thumbnail. The thumbnail must be present in the sub-directory "thumbnail" of the category directory. The thumbnail filename must start with "'.$conf['prefix_thumbnail'].'" and the extension must be among the following list :';
     268$lang['update_missing_tn_info'] = 'a picture filetype requires a thumbnail. The thumbnail must be present in the sub-directory "thumbnail" of the category directory. The thumbnail filename must start with the configured thumbnail prefix and the extension must be among the following list :';
    269269$lang['update_disappeared_tn'] = 'the thumbnail disapeared';
    270270$lang['update_disappeared'] = 'doesn\'t exist';
Note: See TracChangeset for help on using the changeset viewer.