]> source.dussan.org Git - gitea.git/commitdiff
remove typo (#31524)
authorrayden84 <feigenanton@hotmail.de>
Sat, 29 Jun 2024 15:54:15 +0000 (17:54 +0200)
committerGitHub <noreply@github.com>
Sat, 29 Jun 2024 15:54:15 +0000 (15:54 +0000)
modules/setting/config_provider.go

index 3138f8a63eeda2ffa8599fcccd8f3f7c05f3afbc..2d73cbc3fd4ada91aea47426c6489ab7b0a16971 100644 (file)
@@ -326,14 +326,14 @@ func LogStartupProblem(skip int, level log.Level, format string, args ...any) {
 
 func deprecatedSetting(rootCfg ConfigProvider, oldSection, oldKey, newSection, newKey, version string) {
        if rootCfg.Section(oldSection).HasKey(oldKey) {
-               LogStartupProblem(1, log.ERROR, "Deprecation: config option `[%s].%s` presents, please use `[%s].%s` instead because this fallback will be/has been removed in %s", oldSection, oldKey, newSection, newKey, version)
+               LogStartupProblem(1, log.ERROR, "Deprecated config option `[%s].%s` is present, please use `[%s].%s` instead. This fallback will be/has been removed in %s", oldSection, oldKey, newSection, newKey, version)
        }
 }
 
 // deprecatedSettingDB add a hint that the configuration has been moved to database but still kept in app.ini
 func deprecatedSettingDB(rootCfg ConfigProvider, oldSection, oldKey string) {
        if rootCfg.Section(oldSection).HasKey(oldKey) {
-               LogStartupProblem(1, log.ERROR, "Deprecation: config option `[%s].%s` presents but it won't take effect because it has been moved to admin panel -> config setting", oldSection, oldKey)
+               LogStartupProblem(1, log.ERROR, "Deprecation: config option `[%s].%s` present but it won't take effect because it has been moved to admin panel -> config setting", oldSection, oldKey)
        }
 }