fix adding photo to incorrect gallery

This commit is contained in:
Bartek Przybylski 2012-03-15 00:09:06 +01:00
parent 193e93e4a9
commit 0fadbee699
2 changed files with 2 additions and 2 deletions

View File

@ -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'];

View File

@ -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)