- Fixed a problem whenever PhpReader had to create a folder (permission was given in a string)

This commit is contained in:
Dave M. 2024-10-17 17:26:05 +00:00
parent 114d4ebe1e
commit 71dda03c3e
1 changed files with 1 additions and 1 deletions

View File

@ -41,7 +41,7 @@ class PhpReader implements ReaderInterface {
$path = $this->pathList[0]; $path = $this->pathList[0];
if ( ! file_exists($path) ) { if ( ! file_exists($path) ) {
mkdir($path, '755', true); mkdir($path, 0755, true);
} }
return (bool) file_put_contents($path . DIRECTORY_SEPARATOR . "$filepath.{$this->accept[0]}", "<?php return " . var_export($content, true) . ";"); return (bool) file_put_contents($path . DIRECTORY_SEPARATOR . "$filepath.{$this->accept[0]}", "<?php return " . var_export($content, true) . ";");