if ($between = between(reveal($message ?? ''), '[taskid]')) {
$monday = turnBackTime(new DateTimeImmutable);
- $completedTasksFile = getFilePathForWeek($monday->year, $monday->month, $monday->weekNum);
+ $completedTasksFile = getFilePathForWeek($monday->year, $monday->month, $monday->weekNum, PATH_TO_TASKS_FILES);
$completedTasks = file_exists($completedTasksFile) ? lines(trim(file_get_contents($completedTasksFile))) : [];
$tasksForTheWeek = getTasksForTheWeek(
$monday->year,
require 'taskMatrix.php'
);
- $completedTasksFile = getFilePathForWeek($monday->year, $monday->month, $monday->weekNum);
+ $completedTasksFile = getFilePathForWeek($monday->year, $monday->month, $monday->weekNum, PATH_TO_TASKS_FILES);
$completedTasks = file_exists($completedTasksFile) ? lines(trim(file_get_contents($completedTasksFile))) : [];
if (!array_diff($tasksForTheWeek, $completedTasks)) {
require 'taskMatrix.php'
);
- $completedTasksFile = getFilePathForWeek($monday->year, $monday->month, $monday->weekNum);
+ $completedTasksFile = getFilePathForWeek($monday->year, $monday->month, $monday->weekNum, PATH_TO_TASKS_FILES);
$completedTasks = file_exists($completedTasksFile) ? lines(trim(file_get_contents($completedTasksFile))) : [];
if (!array_diff($tasksForTheWeek, $completedTasks)) {