summaryrefslogtreecommitdiffstats
path: root/apps/gallery/ajax/scanForAlbums.php
blob: de0b141a36709c32acc27c9f04e95dcc023c6f96 (plain)
1
2
3
4
5
6
7
8
9
10
11
<?php

require_once('../../../lib/base.php');
OC_JSON::checkLoggedIn();
OC_JSON::checkAppEnabled('gallery');
require_once('../lib_scanner.php');

OC_JSON::success(array('albums' => OC_GALLERY_SCANNER::scan('')));
//OC_JSON::success(array('albums' => array(array('name' => 'test', 'imagesCount' => 1, 'images' => array('dupa')))));

?>