fix adding photo to incorrect gallery
This commit is contained in:
parent
193e93e4a9
commit
0fadbee699
|
@ -52,7 +52,7 @@ class OC_Gallery_Scanner {
|
||||||
// don't duplicate galleries with same path
|
// don't duplicate galleries with same path
|
||||||
if (!($albumId = $result->fetchRow())) {
|
if (!($albumId = $result->fetchRow())) {
|
||||||
OC_Gallery_Album::create($owner, $name, $path);
|
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 = $result->fetchRow();
|
||||||
}
|
}
|
||||||
$albumId = $albumId['album_id'];
|
$albumId = $albumId['album_id'];
|
||||||
|
|
|
@ -522,7 +522,7 @@ class OC_FileCache{
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* fine files by mimetype
|
* find files by mimetype
|
||||||
* @param string $part1
|
* @param string $part1
|
||||||
* @param string $part2 (optional)
|
* @param string $part2 (optional)
|
||||||
* @param string root (optional)
|
* @param string root (optional)
|
||||||
|
|
Loading…
Reference in New Issue