X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FCore%2FStorageManager.php;h=9e35aa6a36dad113355297c80215da2fd596b9b3;hb=62e7d0f40aac689b56e79b504c6eb2e59cbe6c14;hp=8d5df2d613b30190e43c01a476392cf9016fe6d8;hpb=04d620fc2f567d32b50f5d5b0974acafeb072177;p=friendica.git diff --git a/src/Core/StorageManager.php b/src/Core/StorageManager.php index 8d5df2d613..9e35aa6a36 100644 --- a/src/Core/StorageManager.php +++ b/src/Core/StorageManager.php @@ -1,4 +1,23 @@ . + * + */ namespace Friendica\Core; @@ -286,13 +305,13 @@ class StorageManager $data = $source->get($sourceRef); } - $this->logger->info('Save data to new backend.', ['newBackend' => $destination]); + $this->logger->info('Save data to new backend.', ['newBackend' => $destination::getName()]); $destinationRef = $destination->put($data); $this->logger->info('Saved data.', ['newReference' => $destinationRef]); if ($destinationRef !== '') { $this->logger->info('update row'); - if ($this->dba->update($table, ['backend-class' => $destination, 'backend-ref' => $destinationRef, 'data' => ''], ['id' => $id])) { + if ($this->dba->update($table, ['backend-class' => $destination::getName(), 'backend-ref' => $destinationRef, 'data' => ''], ['id' => $id])) { if (!empty($source)) { $this->logger->info('Delete data from old backend.', ['oldBackend' => $source, 'oldReference' => $sourceRef]); $source->delete($sourceRef);