Rename Config.GetAppVersion() and GetAppCopyright() to AppAppVersion() and AppCopyright(), see #50
This commit is contained in:
parent
9efbbbfe90
commit
6872cff3dc
|
@ -301,13 +301,13 @@ func (c *Config) AppName() string {
|
||||||
return c.appName
|
return c.appName
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAppVersion returns the application version.
|
// AppVersion returns the application version.
|
||||||
func (c *Config) GetAppVersion() string {
|
func (c *Config) AppVersion() string {
|
||||||
return c.appVersion
|
return c.appVersion
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAppCopyright returns the application copyright.
|
// AppCopyright returns the application copyright.
|
||||||
func (c *Config) GetAppCopyright() string {
|
func (c *Config) AppCopyright() string {
|
||||||
return c.appCopyright
|
return c.appCopyright
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -471,7 +471,7 @@ func (c *Config) ClientConfig() frontend.Config {
|
||||||
|
|
||||||
result := frontend.Config{
|
result := frontend.Config{
|
||||||
"appName": c.AppName(),
|
"appName": c.AppName(),
|
||||||
"appVersion": c.GetAppVersion(),
|
"appVersion": c.AppVersion(),
|
||||||
"debug": c.IsDebug(),
|
"debug": c.IsDebug(),
|
||||||
"cameras": cameras,
|
"cameras": cameras,
|
||||||
"countries": countries,
|
"countries": countries,
|
||||||
|
|
|
@ -17,8 +17,8 @@ type Config interface {
|
||||||
|
|
||||||
ConfigFile() string
|
ConfigFile() string
|
||||||
AppName() string
|
AppName() string
|
||||||
GetAppVersion() string
|
AppVersion() string
|
||||||
GetAppCopyright() string
|
AppCopyright() string
|
||||||
IsDebug() bool
|
IsDebug() bool
|
||||||
DbServerIP() string
|
DbServerIP() string
|
||||||
DbServerPort() uint
|
DbServerPort() uint
|
||||||
|
|
|
@ -158,13 +158,13 @@ func (c *Config) AppName() string {
|
||||||
return "PhotoPrism"
|
return "PhotoPrism"
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAppVersion returns the application version.
|
// AppVersion returns the application version.
|
||||||
func (c *Config) GetAppVersion() string {
|
func (c *Config) AppVersion() string {
|
||||||
return "DEVELOPMENT"
|
return "DEVELOPMENT"
|
||||||
}
|
}
|
||||||
|
|
||||||
// GetAppCopyright returns the application copyright.
|
// AppCopyright returns the application copyright.
|
||||||
func (c *Config) GetAppCopyright() string {
|
func (c *Config) AppCopyright() string {
|
||||||
return "The PhotoPrism contributors <hello@photoprism.org>"
|
return "The PhotoPrism contributors <hello@photoprism.org>"
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -328,7 +328,7 @@ func (c *Config) ClientConfig() frontend.Config {
|
||||||
|
|
||||||
result := frontend.Config{
|
result := frontend.Config{
|
||||||
"appName": c.AppName(),
|
"appName": c.AppName(),
|
||||||
"appVersion": c.GetAppVersion(),
|
"appVersion": c.AppVersion(),
|
||||||
"debug": c.IsDebug(),
|
"debug": c.IsDebug(),
|
||||||
"cameras": cameras,
|
"cameras": cameras,
|
||||||
"countries": countries,
|
"countries": countries,
|
||||||
|
|
Loading…
Reference in a new issue