mirror of
https://github.com/nextcloud/server.git
synced 2026-06-12 10:10:49 -04:00
Fix psalm warnings
Signed-off-by: Morris Jobke <hey@morrisjobke.de>
This commit is contained in:
parent
93e671e812
commit
72df65c810
2 changed files with 2 additions and 1 deletions
|
|
@ -152,7 +152,7 @@ class DashboardController extends Controller {
|
|||
return new JSONResponse(['error' => $e->getMessage()], Http::STATUS_INTERNAL_SERVER_ERROR);
|
||||
}
|
||||
$currentVersion++;
|
||||
$this->config->setUserValue($this->userId, 'dashboard', 'backgroundVersion', $currentVersion);
|
||||
$this->config->setUserValue($this->userId, 'dashboard', 'backgroundVersion', (string)$currentVersion);
|
||||
return new JSONResponse([
|
||||
'type' => $type,
|
||||
'value' => $value,
|
||||
|
|
|
|||
|
|
@ -141,6 +141,7 @@ class BackgroundService {
|
|||
*/
|
||||
public function setFileBackground($path): void {
|
||||
$this->config->setUserValue($this->userId, 'dashboard', 'background', 'custom');
|
||||
/** @var \OCP\Files\File $file */
|
||||
$file = $this->userFolder->get($path);
|
||||
$this->dashboardUserFolder->newFile('background.jpg', $file->fopen('r'));
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue