mirror of https://github.com/joomla/joomla-cms.git
[4.4] plugins\filesystem\local\src\Adapter\LocalAdapter.php (#43274)
* Update LocalAdapter.php * Update LocalAdapter.php ---------
This commit is contained in:
parent
7b48c5b7a2
commit
079047c366
|
@ -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)) {
|
||||
|
|
Loading…
Reference in New Issue