This commit is contained in:
Martijn de Boer 2024-03-23 13:12:33 +01:00
parent 0e92b78d33
commit fd40c9cbed

View file

@ -225,4 +225,11 @@ class Template {
file_put_contents(PUBLIC_DIR . "/" . $filename, $contents); file_put_contents(PUBLIC_DIR . "/" . $filename, $contents);
} }
public function saveText(string $filename, string $contents)
{
Logger::log("Saving text to " . $filename, Logger::IOWRITE, "Template");
file_put_contents(PUBLIC_DIR . "/" . $filename, $contents);
}
} }