From e21cfaafb0f7ceacca3cb94c15608bcc1148f8a1 Mon Sep 17 00:00:00 2001 From: Kevin Chabowski Date: Sun, 25 May 2014 12:10:48 +0200 Subject: Fixed bug in template saving of FilesystemStorageAccess. This weird error came from an automated search&replace to add NaturalDocs comments... --- src/ste/FilesystemStorageAccess.php | 4 +--- 1 file changed, 1 insertion(+), 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, "") === false) { + if(file_put_contents($fn, "") === false) { throw new CantSaveTemplate("Unable to save template."); } } -- cgit v1.2.3-54-g00ecf