mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
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:
+2
-2
@@ -44,7 +44,6 @@ function insert_local_category( $cat_id )
|
||||
if ( isset( $page['cat'] ) or $_GET['update'] == 'all' )
|
||||
{
|
||||
$output.= insert_local_image( $cat_directory, $cat_id );
|
||||
update_category( $cat_id );
|
||||
}
|
||||
}
|
||||
|
||||
@@ -403,7 +402,6 @@ function insert_remote_category( $xml_dir, $site_id, $id_uppercat, $level )
|
||||
$category_id = $row['id'];
|
||||
}
|
||||
$output.= insert_remote_image( $list_dirs[$i], $category_id );
|
||||
update_category( $category_id );
|
||||
$output.= insert_remote_category( $list_dirs[$i], $site_id,
|
||||
$category_id, $level+1 );
|
||||
$output.= '</div>';
|
||||
@@ -598,6 +596,8 @@ if ( @is_file( './listing.xml' ) )
|
||||
|
||||
$vtp->closeSession( $sub, 'remote_update' );
|
||||
}
|
||||
//---------------------------------------- update informations about categories
|
||||
update_category( 'all' );
|
||||
//----------------------------------------------------------- sending html code
|
||||
$vtp->Parse( $handle , 'sub', $sub );
|
||||
?>
|
||||
Reference in New Issue
Block a user