From a88a9953bd79955d125594da1238384486bbb15f Mon Sep 17 00:00:00 2001 From: zebardy Date: Wed, 19 Feb 2020 01:56:35 +0000 Subject: [PATCH] bug fixes following merge --- controllers/RecipesController.php | 2 ++ controllers/SystemController.php | 2 ++ services/CalendarService.php | 2 +- 3 files changed, 5 insertions(+), 1 deletion(-) diff --git a/controllers/RecipesController.php b/controllers/RecipesController.php index b7cc073f..dffd0798 100644 --- a/controllers/RecipesController.php +++ b/controllers/RecipesController.php @@ -2,6 +2,8 @@ namespace Grocy\Controllers; +use \Grocy\Services\RecipesService; + class RecipesController extends BaseController { public function __construct(\DI\Container $container) diff --git a/controllers/SystemController.php b/controllers/SystemController.php index 7dc9b61f..640066af 100644 --- a/controllers/SystemController.php +++ b/controllers/SystemController.php @@ -2,6 +2,8 @@ namespace Grocy\Controllers; +use \Grocy\Services\DatabaseMigrationService; + class SystemController extends BaseController { diff --git a/services/CalendarService.php b/services/CalendarService.php index 137c02ce..d60002a6 100644 --- a/services/CalendarService.php +++ b/services/CalendarService.php @@ -107,7 +107,7 @@ class CalendarService extends BaseService 'title' => $titlePrefix . FindObjectInArrayByPropertyValue($recipes, 'id', $recipeOfCurrentDay->includes_recipe_id)->name, 'start' => FindObjectInArrayByPropertyValue($recipes, 'id', $recipeOfCurrentDay->recipe_id)->name, 'date_format' => 'date', - 'description' => $this->UrlManager()->ConstructUrl('/mealplan' . '?week=' . FindObjectInArrayByPropertyValue($recipes, 'id', $recipeOfCurrentDay->recipe_id)->name) + 'description' => $this->UrlManager->ConstructUrl('/mealplan' . '?week=' . FindObjectInArrayByPropertyValue($recipes, 'id', $recipeOfCurrentDay->recipe_id)->name) ); } }