mirror of
https://github.com/nextcloud/server.git
synced 2026-04-25 16:19:06 -04:00
tabs for spaces, fix array key name
This commit is contained in:
parent
f6c07094c2
commit
e073cd756c
1 changed files with 4 additions and 4 deletions
|
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue