Skip to content
Snippets Groups Projects
Commit 63ae4b3d authored by Bartek Przybylski's avatar Bartek Przybylski
Browse files

db cleanup after gallery remove

parent 5172e0a7
No related branches found
No related tags found
No related merge requests found
......@@ -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) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment