fix adding photo to incorrect gallery

remotes/origin/stable4
Bartek Przybylski 14 years ago
parent 193e93e4a9
commit 0fadbee699
  1. 2
      apps/gallery/lib/scanner.php
  2. 2
      lib/filecache.php

@ -52,7 +52,7 @@ class OC_Gallery_Scanner {
// don't duplicate galleries with same path
if (!($albumId = $result->fetchRow())) {
OC_Gallery_Album::create($owner, $name, $path);
$result = OC_Gallery_Album::find($owner, $name);
$result = OC_Gallery_Album::find($owner, $name, $path);
$albumId = $result->fetchRow();
}
$albumId = $albumId['album_id'];

@ -522,7 +522,7 @@ class OC_FileCache{
}
/**
* fine files by mimetype
* find files by mimetype
* @param string $part1
* @param string $part2 (optional)
* @param string root (optional)

Loading…
Cancel
Save