[4.4] plugins\filesystem\local\src\Adapter\LocalAdapter.php (#43274)

* Update LocalAdapter.php

* Update LocalAdapter.php

---------
This commit is contained in:
Brian Teeman 2024-04-26 17:44:58 +01:00 committed by GitHub
parent 7b48c5b7a2
commit 079047c366
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 2 additions and 2 deletions

View File

@ -251,7 +251,7 @@ class LocalAdapter implements AdapterInterface
*/
public function createFile(string $name, string $path, $data): string
{
$name = $this->getSafeName($name);
$name = $this->getSafeName($name);
$localPath = $this->getLocalPath($path . '/' . $name);
$this->checkContent($localPath, $data);
@ -320,7 +320,7 @@ class LocalAdapter implements AdapterInterface
*/
public function delete(string $path)
{
$localPath = $this->getLocalPath($path);
$localPath = $this->getLocalPath($path);
$thumbnailPaths = $this->getLocalThumbnailPaths($localPath);
if (is_file($localPath)) {