diff options
author | Kevin Chabowski <kevin@kch42.de> | 2014-05-25 12:10:48 +0200 |
---|---|---|
committer | Kevin Chabowski <kevin@kch42.de> | 2014-05-25 12:10:48 +0200 |
commit | e21cfaafb0f7ceacca3cb94c15608bcc1148f8a1 (patch) | |
tree | 712e5115ab6c51e63cbeb1eb98aa9e5e00e55067 /src | |
parent | 54486e9da19ef91c2240e8b2e6c4d19da5dce0f0 (diff) | |
download | ste-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...
Diffstat (limited to 'src')
-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."); } } |