diff options
Diffstat (limited to 'apps/gallery/ajax/scanForAlbums.php')
-rw-r--r-- | apps/gallery/ajax/scanForAlbums.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/ajax/scanForAlbums.php b/apps/gallery/ajax/scanForAlbums.php index ff696804b00..b1f0a433a42 100644 --- a/apps/gallery/ajax/scanForAlbums.php +++ b/apps/gallery/ajax/scanForAlbums.php @@ -4,7 +4,7 @@ require_once('../../../lib/base.php'); OC_JSON::checkLoggedIn(); OC_JSON::checkAppEnabled('gallery'); -OC_JSON::success(array('albums' => OC_Gallery_Scanner::scan(''))); -//OC_JSON::success(array('albums' => array(array('name' => 'test', 'imagesCount' => 1, 'images' => array('dupa'))))); +OC_Gallery_Scanner::cleanUp(); +OC_JSON::success(array('albums' => OC_Gallery_Scanner::scan('/'))); ?> |