related to #1381 changed name of the api function that calculates orphans

This commit is contained in:
Matthieu Leproux
2021-08-04 12:35:45 +02:00
parent 1ec5a2933c
commit adba2def7e
4 changed files with 115 additions and 116 deletions

6
ws.php
View File

@@ -594,14 +594,14 @@ function ws_addDefaultMethods( $arr )
);
$service->addMethod(
'pwg.images.calculateOrphansOnAlbumDeletion',
'ws_images_calculateOrphansOnAlbumDeletion',
'pwg.categories.calculateOrphans',
'ws_categories_calculateOrphans',
array(
'category_id' => array('type'=>WS_TYPE_ID,
'flags'=>WS_PARAM_FORCE_ARRAY),
),
'Return the number of orphan photos if an album is deleted.',
$ws_functions_root . 'pwg.php',
$ws_functions_root . 'pwg.categories.php',
array('admin_only'=>true)
);