diff options
-rw-r--r-- | src/ste/FilesystemStorageAccess.php | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/src/ste/FilesystemStorageAccess.php b/src/ste/FilesystemStorageAccess.php index ef29404..cdbce8b 100644 --- a/src/ste/FilesystemStorageAccess.php +++ b/src/ste/FilesystemStorageAccess.php @@ -62,9 +62,7 @@ class FilesystemStorageAccess implements StorageAccess { public function save($tpl, $data, $mode) { $fn = (($mode == StorageAccess::MODE_SOURCE) ? $this->sourcedir : $this->transcompileddir) . "/" . $tpl . (($mode == StorageAccess::MODE_TRANSCOMPILED) ? ".php" : ""); @mkdir(dirname($fn), 0777, true); - if(file_put_contents($fn, "<?php - -// File: FilesystemStorageAccess.php \$transcompile_fx = $data; ?>") === false) { + if(file_put_contents($fn, "<?php\n\$transcompile_fx = $data; ?>") === false) { throw new CantSaveTemplate("Unable to save template."); } } |