mirror of
https://github.com/nextcloud/server.git
synced 2026-06-10 17:23:59 -04:00
db cleanup after gallery remove
This commit is contained in:
parent
5172e0a7a3
commit
63ae4b3dfc
1 changed files with 4 additions and 0 deletions
|
|
@ -34,7 +34,11 @@ function handleRename($oldname, $newname) {
|
|||
|
||||
function handleRemove($name) {
|
||||
OC_JSON::checkLoggedIn();
|
||||
$album_id = OC_Gallery_Album::find(OC_User::getUser(), $name);
|
||||
$album_id = $album_id->fetchRow();
|
||||
$album_id = $album_id['album_id'];
|
||||
OC_Gallery_Album::remove(OC_User::getUser(), $name);
|
||||
OC_Gallery_Photo::removeByAlbumId($album_id);
|
||||
}
|
||||
|
||||
function handleGetThumbnails($albumname) {
|
||||
|
|
|
|||
Loading…
Reference in a new issue