Changeset 283


Ignore:
Timestamp:
Jan 17, 2004, 7:13:12 PM (20 years ago)
Author:
z0rglub
Message:

synchronize user calculated data if a (some) site is deleted

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/release-1_3/admin/configuration.php

    r263 r283  
    6161  }
    6262  // deletion of site as asked
     63  $site_deleted = false;
    6364  $query = 'SELECT id';
    6465  $query.= ' FROM '.PREFIX_TABLE.'sites';
     
    7172    {
    7273      delete_site( $row['id'] );
    73       // if any picture of this site were linked to another categories, we
    74       // have to update the informations of those categories. To make it
    75       // simple, we just update all the categories
    76       update_category( 'all' );
     74      $site_deleted = true;
    7775    }
     76  }
     77  // if any picture of this site were linked to another categories, we have
     78  // to update the informations of those categories. To make it simple, we
     79  // just update all the categories
     80  if ( $site_deleted )
     81  {
     82    update_category( 'all' );
     83    synchronize_all_users();
    7884  }
    7985  // thumbnail prefix must not contain accentuated characters
Note: See TracChangeset for help on using the changeset viewer.