If we delete a picture which is logically linked to a category, the
informations about this category are not updated (number of pictures and date of last picture) -> use of update_category( 'all' ) git-svn-id: http://piwigo.org/svn/trunk@130 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
parent
4ea1d5ced3
commit
7c16e8f343
2 changed files with 10 additions and 3 deletions
|
|
@ -68,7 +68,14 @@ if ( isset( $_POST['submit'] ) )
|
|||
while ( $row = mysql_fetch_array( $result ) )
|
||||
{
|
||||
$site = 'delete_site_'.$row['id'];
|
||||
if ( $_POST[$site] == 1 ) delete_site( $row['id'] );
|
||||
if ( $_POST[$site] == 1 )
|
||||
{
|
||||
delete_site( $row['id'] );
|
||||
// if any picture of this site were linked to another categories, we
|
||||
// have to update the informations of those categories. To make it
|
||||
// simple, we just update all the categories
|
||||
update_category( 'all' );
|
||||
}
|
||||
}
|
||||
// thumbnail prefix must not contain accentuated characters
|
||||
$old_prefix = $_POST['prefix_thumbnail'];
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue