Rename Config.GetAppName() to AppName(), see #50

This commit is contained in:
Michael Mayer 2018-12-21 02:44:34 +01:00
parent 37fe1d093e
commit 9efbbbfe90
3 changed files with 7 additions and 7 deletions

View file

@ -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,

View file

@ -16,7 +16,7 @@ type Config interface {
ClientConfig() frontend.Config
ConfigFile() string
GetAppName() string
AppName() string
GetAppVersion() string
GetAppCopyright() string
IsDebug() bool

View file

@ -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,