diff --git a/file.php b/file.php index 55981ef..09214fb 100644 --- a/file.php +++ b/file.php @@ -188,7 +188,7 @@ class file * @throws If parent directory not exists, is not writeable, or the file * exists and is not writeable */ - public function file_put_contents ($filename, $data) + public function file_put_contents ($filename, $data, $flags) { $this->debug (2, "file_put_contents ($filename)"); $filename = $this->realpath ($filename); @@ -201,7 +201,7 @@ class file throw new \Exception (sprintf (dgettext ("domframework", "File '%s' is not a file"), $filename), 500); - $contents = file_put_contents ($filename, $data); + $contents = file_put_contents ($filename, $data, $flags); $this->debug (1, "file_put_contents ($filename, \$data) => ". "$contents bytes"); return $contents;