]> source.dussan.org Git - nextcloud-server.git/commitdiff
tabs for spaces, fix array key name
authorBartek Przybylski <bart.p.pl@gmail.com>
Fri, 8 Jun 2012 19:55:28 +0000 (21:55 +0200)
committerBartek Przybylski <bart.p.pl@gmail.com>
Sun, 10 Jun 2012 11:18:47 +0000 (13:18 +0200)
apps/gallery/lib/managers.php

index 2d2bdd2734b9a2dc38915128349a0d1b034feb5b..41300058936556ca426b6db480b298fe72a3868f 100644 (file)
@@ -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;
        }