Support meal plan as default page (#383)

* Support meal plan as default page

* Update SystemController.php
This commit is contained in:
Lewis Juggins 2019-09-25 12:08:41 +01:00 committed by Bernd Bestel
parent 04808eaa66
commit fd14083443

View File

@ -85,6 +85,11 @@ class SystemController extends BaseController
if ($entryPage === 'calendar' && constant('GROCY_FEATURE_FLAG_CALENDAR')) {
return '/calendar';
}
// Meal Plan
if ($entryPage === 'mealplan' && constant('GROCY_FEATURE_FLAG_RECIPES')) {
return '/mealplan';
}
return '/about';
}