fixing missing '

This commit is contained in:
Rob Emery 2025-01-11 22:27:16 +00:00
parent a8ef3aa18a
commit 4bbe93aea7

View file

@ -156,7 +156,7 @@ class Utils
public static function saveFile(string $filename, string $data) : void public static function saveFile(string $filename, string $data) : void
{ {
$dir = \dirname($filename); $dir = \dirname($filename);
if (!\is_dir($dir) && !\mkdir($dir, intval($oConfig->Get('security', 'dir_permissions)), true)) { if (!\is_dir($dir) && !\mkdir($dir, intval($oConfig->Get('security', 'dir_permissions')), true)) {
throw new \RuntimeException('Failed to create directory "'.$dir.'"'); throw new \RuntimeException('Failed to create directory "'.$dir.'"');
} }
if (false === \file_put_contents($filename, $data)) { if (false === \file_put_contents($filename, $data)) {