Modified - Enabled shared branding assets by default in the installer.
release-nightly / nightly-binary (push) Has been cancelled
release-nightly / nightly-container (push) Has been cancelled

- 1 - I updated `routers/install/install.go` so `BrandingUseSharedAssets` starts as enabled on the install form, making `Use the same logo files for favicon assets` checked by default.
This commit is contained in:
2026-05-12 02:36:16 +00:00
parent b907e4c38c
commit e69839ed88
2 changed files with 4 additions and 0 deletions
+3
View File
@@ -732,3 +732,6 @@ Project Change ID[date-time] - application-version - Type - Summary:
- 3 - In `routers/install/install.go`, I factored the installer defaults into reusable helpers, added `app.ini` upload parsing with size/error handling, and mapped the imported config into the existing install form fields for database, general server paths, mailer, registration, OpenID, security, and admin policy settings.
- 4 - I added installer locale strings in both `options/locale/locale_en-US.json` and `options/locale/locale_ro-RO.json` for the new import UI, success message, and import errors, and the success flash now auto-dismisses after 5 seconds both on initial page load and after the AJAX import injects a new flash message.
- 5 - I added regression coverage in `routers/install/routes_test.go` for the new upload control and the config-to-form mapping behavior.
146 - [2026-05-12 01:30:10] - v1.27.0-dev-125-g1525c9c8ee - Type: Modified - Enabled shared branding assets by default in the installer.
- 1 - I updated `routers/install/install.go` so `BrandingUseSharedAssets` starts as enabled on the install form, making `Use the same logo files for favicon assets` checked by default.
+1
View File
@@ -302,6 +302,7 @@ func installContexter() func(next http.Handler) http.Handler {
func newInstallFormFromSettings() (forms.InstallForm, string) {
form := forms.InstallForm{}
form.BrandingUseSharedAssets = true
// Database settings
form.DbHost = setting.Database.Host
form.DbUser = setting.Database.User