summaryrefslogtreecommitdiff
path: root/src/Controllers/EntriesController.php
diff options
context:
space:
mode:
Diffstat (limited to 'src/Controllers/EntriesController.php')
-rw-r--r--src/Controllers/EntriesController.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/Controllers/EntriesController.php b/src/Controllers/EntriesController.php
index 13aa8e0..801fe7b 100644
--- a/src/Controllers/EntriesController.php
+++ b/src/Controllers/EntriesController.php
@@ -6,7 +6,7 @@ use Yosymfony\Toml\Toml;
class EntriesController
{
- public function getEntries()
+ public function getEntries(string $formPath): array
{
/**@var Utilities $utilities*/
global $utilities;
@@ -65,7 +65,7 @@ class EntriesController
$entriesForDay = $utilities->scandir($dayPath);
foreach ($entriesForDay as $entryForDay) {
- $entry = Toml::parseFile("$dayPath/$entryForDay");
+ $entry = Toml::parseFile($entryForDay);
if (isset($_GET['flat'])) {
$entries[] = $entry;
} else {