Ignore:
Timestamp:
Aug 29, 2004, 1:21:21 PM (20 years ago)
Author:
z0rglub
Message:

simplier display of update result :

  • number of new categories
  • number of new elements
  • number of deleted categories
  • number of deleted elements
  • only errors are fully listed
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/include/functions.php

    r496 r498  
    193193function delete_categories($ids)
    194194{
     195  global $counts;
     196 
    195197  // destruction of all the related elements
    196198  $query = '
     
    252254;';
    253255  mysql_query($query);
    254 }
    255        
     256
     257  if (isset($counts['del_categories']))
     258  {
     259    $counts['del_categories']+= count($ids);
     260  }
     261}
    256262
    257263// The function delete_elements deletes the elements identified by the
     
    262268function delete_elements($ids)
    263269{
    264   global $count_deleted;
     270  global $counts;
    265271 
    266272  // destruction of the comments on the image
     
    296302  mysql_query($query);
    297303
    298   $count_deleted+= count($ids);
     304  if (isset($counts['del_elements']))
     305  {
     306    $counts['del_elements']+= count($ids);
     307  }
    299308}
    300309
Note: See TracChangeset for help on using the changeset viewer.