Rename Config.GetAppName() to AppName(), see #50
This commit is contained in:
parent
37fe1d093e
commit
9efbbbfe90
3 changed files with 7 additions and 7 deletions
|
@ -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,
|
||||
|
|
|
@ -16,7 +16,7 @@ type Config interface {
|
|||
ClientConfig() frontend.Config
|
||||
|
||||
ConfigFile() string
|
||||
GetAppName() string
|
||||
AppName() string
|
||||
GetAppVersion() string
|
||||
GetAppCopyright() string
|
||||
IsDebug() bool
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in a new issue