mirror of
https://github.com/grocy/grocy.git
synced 2025-08-15 02:04:38 +00:00
Handle demo mode via a setting instead of checking the existence of a file (closes #484)
This commit is contained in:
@@ -22,7 +22,7 @@ class SystemController extends BaseController
|
||||
$databaseMigrationService = new DatabaseMigrationService();
|
||||
$databaseMigrationService->MigrateDatabase();
|
||||
|
||||
if (GROCY_IS_DEMO_INSTALL)
|
||||
if (GROCY_MODE === 'dev' || GROCY_MODE === 'demo' || GROCY_MODE === 'prerelease')
|
||||
{
|
||||
$demoDataGeneratorService = new DemoDataGeneratorService();
|
||||
$demoDataGeneratorService->PopulateDemoData();
|
||||
|
Reference in New Issue
Block a user