1
0
mirror of https://github.com/flextype/flextype.git synced 2025-08-29 16:00:15 +02:00

Slim Framework integration #118 #117

- Snippets: fixes and refactoring
This commit is contained in:
Awilum
2019-05-29 01:07:50 +03:00
parent 9eb272f145
commit acb363fe34

View File

@@ -57,7 +57,7 @@ class Snippets
*/
public function fetch(string $id)
{
$snippet_file = Fieldsets::_file_location($id);
$snippet_file = $this->_file_location($id);
if (Filesystem::has($snippet_file)) {
if ($snippet_body = Filesystem::read($snippet_file)) {