mirror of
https://github.com/flextype/flextype.git
synced 2025-08-30 00:10:31 +02:00
@@ -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);
|
||||
|
Reference in New Issue
Block a user