diff --git a/internal/context/config.go b/internal/context/config.go index 6ba685e7d..9e64488f8 100644 --- a/internal/context/config.go +++ b/internal/context/config.go @@ -296,8 +296,8 @@ func (c *Config) connectToDatabase() error { return err } -// GetAppName returns the application name. -func (c *Config) GetAppName() string { +// AppName returns the application name. +func (c *Config) AppName() string { return c.appName } @@ -470,7 +470,7 @@ func (c *Config) ClientConfig() frontend.Config { cssHash := fsutil.Hash(c.GetPublicBuildPath() + "/app.css") result := frontend.Config{ - "appName": c.GetAppName(), + "appName": c.AppName(), "appVersion": c.GetAppVersion(), "debug": c.IsDebug(), "cameras": cameras, diff --git a/internal/photoprism/config.go b/internal/photoprism/config.go index 82669f617..5f7c7e327 100644 --- a/internal/photoprism/config.go +++ b/internal/photoprism/config.go @@ -16,7 +16,7 @@ type Config interface { ClientConfig() frontend.Config ConfigFile() string - GetAppName() string + AppName() string GetAppVersion() string GetAppCopyright() string IsDebug() bool diff --git a/internal/test/config.go b/internal/test/config.go index d00d57104..8968e05c6 100644 --- a/internal/test/config.go +++ b/internal/test/config.go @@ -153,8 +153,8 @@ func (c *Config) connectToDatabase() error { return err } -// GetAppName returns the application name. -func (c *Config) GetAppName() string { +// AppName returns the application name. +func (c *Config) AppName() string { return "PhotoPrism" } @@ -327,7 +327,7 @@ func (c *Config) ClientConfig() frontend.Config { cssHash := fsutil.Hash(c.GetPublicBuildPath() + "/app.css") result := frontend.Config{ - "appName": c.GetAppName(), + "appName": c.AppName(), "appVersion": c.GetAppVersion(), "debug": c.IsDebug(), "cameras": cameras,