diff options
author | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-06-08 21:55:28 +0200 |
---|---|---|
committer | Bartek Przybylski <bart.p.pl@gmail.com> | 2012-06-10 13:18:47 +0200 |
commit | e073cd756cc2c1485292fa78884ad237a5aa8160 (patch) | |
tree | f71d3083a9079d4487c438d6c1406d459fd95f25 | |
parent | f6c07094c2cd2e27e87427ef9f8149fef7586168 (diff) | |
download | nextcloud-server-e073cd756cc2c1485292fa78884ad237a5aa8160.tar.gz nextcloud-server-e073cd756cc2c1485292fa78884ad237a5aa8160.zip |
tabs for spaces, fix array key name
-rw-r--r-- | apps/gallery/lib/managers.php | 8 |
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; } |