Fix warn message about custom params on the language top level - hugo - [fork] hugo port for 9front
 (HTM) git clone git@git.drkhsh.at/hugo.git
 (DIR) Log
 (DIR) Files
 (DIR) Refs
 (DIR) Submodules
 (DIR) README
 (DIR) LICENSE
       ---
 (DIR) commit ad4bc969da46cc624ab17d600a812c966248553d
 (DIR) parent 4003c7903f69610d1d1277f73c1e236ff34af690
 (HTM) Author: Andreas Deininger <andreas@deininger.net>
       Date:   Thu, 18 May 2023 22:51:11 +0200
       
       Fix warn message about custom params on the language top level
       
       Diffstat:
         M config/allconfig/allconfig.go       |       6 +++---
       
       1 file changed, 3 insertions(+), 3 deletions(-)
       ---
 (DIR) diff --git a/config/allconfig/allconfig.go b/config/allconfig/allconfig.go
       @@ -12,7 +12,7 @@
        // limitations under the License.
        
        // Package allconfig contains the full configuration for Hugo.
       -// <docsmeta>{ "name": "Configuration", "description": "This section holds all configiration options in Hugo." }</docsmeta>
       +// <docsmeta>{ "name": "Configuration", "description": "This section holds all configuration options in Hugo." }</docsmeta>
        package allconfig
        
        import (
       @@ -711,10 +711,10 @@ func FromLoadConfigResult(fs afero.Fs, res config.LoadConfigResult) (*Configs, e
                                        }
                                        if kk != maps.MergeStrategyKey && !configLanguageKeys[kk] {
                                                // This should have been placed below params.
       -                                        // We accidently allowed it in the past, so we need to support it a little longer,
       +                                        // We accidentally allowed it in the past, so we need to support it a little longer,
                                                // But log a warning.
                                                if _, found := params[kk]; !found {
       -                                                helpers.Deprecated(fmt.Sprintf("config: languages.%s.%s: custom params on the language top level", k, kk), fmt.Sprintf("Put the value below [languages.%s.params]. See See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120", k), false)
       +                                                helpers.Deprecated(fmt.Sprintf("config: languages.%s.%s: custom params on the language top level", k, kk), fmt.Sprintf("Put the value below [languages.%s.params]. See https://gohugo.io/content-management/multilingual/#changes-in-hugo-01120", k), false)
                                                        params[kk] = vv
                                                }
                                        }