make gallary work with archives
This commit is contained in:
parent
9f01533710
commit
a4543175ce
2 changed files with 1 additions and 2 deletions
|
@ -95,7 +95,6 @@ function handleGetGallery($path) {
|
|||
else
|
||||
$path = '/'.ltrim($path, '/');
|
||||
if (strlen($path) > 1) $path = rtrim($path, '/');
|
||||
error_log($path);
|
||||
$result = OC_Gallery_Album::find(OC_User::getUser(), null, $path);
|
||||
$album_details = $result->fetchRow();
|
||||
|
||||
|
|
|
@ -47,7 +47,7 @@ class OC_Gallery_Scanner {
|
|||
$current_album = array('name'=> $path, 'imagesCount' => 0, 'images' => array());
|
||||
$current_album['name'] = self::createName($current_album['name']);
|
||||
|
||||
if ($dh = OC_Filesystem::opendir($path)) {
|
||||
if ($dh = OC_Filesystem::opendir($path.'/')) {
|
||||
while (($filename = readdir($dh)) !== false) {
|
||||
$filepath = ($path[strlen($path)-1]=='/'?$path:$path.'/').$filename;
|
||||
if (substr($filename, 0, 1) == '.') continue;
|
||||
|
|
Loading…
Reference in a new issue