aboutsummaryrefslogtreecommitdiffstats
path: root/apps/gallery
diff options
context:
space:
mode:
authorBartek Przybylski <bart.p.pl@gmail.com>2012-06-08 21:55:28 +0200
committerBartek Przybylski <bart.p.pl@gmail.com>2012-06-08 21:55:28 +0200
commit201a40a1a31825a47784ba08159a540832eec27e (patch)
treed5a1bd246cf6ae4cad93f95faa559679dbfb2ad2 /apps/gallery
parent0c7431e57d0982a35c59e55c5ca11782950b111f (diff)
downloadnextcloud-server-201a40a1a31825a47784ba08159a540832eec27e.tar.gz
nextcloud-server-201a40a1a31825a47784ba08159a540832eec27e.zip
tabs for spaces, fix array key name
Diffstat (limited to 'apps/gallery')
-rw-r--r--apps/gallery/lib/managers.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/apps/gallery/lib/managers.php b/apps/gallery/lib/managers.php
index 2d2bdd2734b..41300058936 100644
--- a/apps/gallery/lib/managers.php
+++ b/apps/gallery/lib/managers.php
@@ -33,9 +33,9 @@ class DatabaseManager {
$stmt = \OCP\DB::prepare('INSERT INTO *PREFIX*pictures_images_cache (uid_owner, path, width, height) VALUES (?, ?, ?, ?)');
$stmt->execute(array(\OCP\USER::getUser(), $path, $image->width(), $image->height()));
\OCP\DB::commit();
- $ret = array('filepath' => $path, 'width' => $image->width(), 'height' => $image->height());
+ $ret = array('path' => $path, 'width' => $image->width(), 'height' => $image->height());
unset($image);
- return $ret;
+ return $ret;
}
private function __construct() {}
@@ -82,8 +82,8 @@ class ThumbnailsManager {
public function getThumbnailInfo($path) {
$arr = DatabaseManager::getInstance()->getFileData($path);
$ret = array('filepath' => $arr['path'],
- 'width' => $arr['width'],
- 'height' => $arr['height']);
+ 'width' => $arr['width'],
+ 'height' => $arr['height']);
return $ret;
}