1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-30 00:10:31 +02:00

Slim Framework integration #118 #117

- Snippets: fixes and refactoring
This commit is contained in:
Awilum
2019-05-29 22:38:11 +03:00
parent cfa1c52e19
commit c646ba79d2

View File

@@ -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);