summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKevin Chabowski <kevin@kch42.de>2014-05-25 12:10:48 +0200
committerKevin Chabowski <kevin@kch42.de>2014-05-25 12:10:48 +0200
commite21cfaafb0f7ceacca3cb94c15608bcc1148f8a1 (patch)
tree712e5115ab6c51e63cbeb1eb98aa9e5e00e55067
parent54486e9da19ef91c2240e8b2e6c4d19da5dce0f0 (diff)
downloadste-e21cfaafb0f7ceacca3cb94c15608bcc1148f8a1.tar.gz
ste-e21cfaafb0f7ceacca3cb94c15608bcc1148f8a1.tar.bz2
ste-e21cfaafb0f7ceacca3cb94c15608bcc1148f8a1.zip
Fixed bug in template saving of FilesystemStorageAccess.
This weird error came from an automated search&replace to add NaturalDocs comments...
-rw-r--r--src/ste/FilesystemStorageAccess.php4
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.");
}
}