From c646ba79d25be20bff6105dc5646ad2c2294db1e Mon Sep 17 00:00:00 2001 From: Awilum Date: Wed, 29 May 2019 22:38:11 +0300 Subject: [PATCH] Slim Framework integration #118 #117 - Snippets: fixes and refactoring --- flextype/Snippets.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/flextype/Snippets.php b/flextype/Snippets.php index f445f5cc..335b42d6 100644 --- a/flextype/Snippets.php +++ b/flextype/Snippets.php @@ -119,7 +119,7 @@ class Snippets */ public function update(string $id, string $data) : bool { - $snippet_file = $this->_file_location($snippet); + $snippet_file = $this->_file_location($id); if (Filesystem::has($snippet_file)) { return Filesystem::write($snippet_file, $data);