summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--apps/gallery/lib/scanner.php2
-rw-r--r--lib/filecache.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/lib/scanner.php b/apps/gallery/lib/scanner.php
index 0fa4d08d3ba..5791662522a 100644
--- a/apps/gallery/lib/scanner.php
+++ b/apps/gallery/lib/scanner.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'];
diff --git a/lib/filecache.php b/lib/filecache.php
index 15eec43abe5..280a9929db0 100644
--- a/lib/filecache.php
+++ b/lib/filecache.php
@@ -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)