diff options
author | Bjørn Erik Pedersen <[email protected]> | 2023-05-17 09:59:57 +0200 |
---|---|---|
committer | Bjørn Erik Pedersen <[email protected]> | 2023-05-17 22:13:29 +0200 |
commit | 5d857165fed4649c3aa639a1555a15b8b1c75bab (patch) | |
tree | 9eafd7d8b85ec4c9bc9a16c83172c3a2b1d57e41 /hugolib/hugo_sites_build.go | |
parent | 0106cf1a6db73f76b7f26744fcee6ce7f41cdf07 (diff) | |
download | hugo-5d857165fed4649c3aa639a1555a15b8b1c75bab.tar.gz hugo-5d857165fed4649c3aa639a1555a15b8b1c75bab.zip |
Deprecate site.Language.Params and some other fixes
Updates #10947
Diffstat (limited to 'hugolib/hugo_sites_build.go')
-rw-r--r-- | hugolib/hugo_sites_build.go | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/hugolib/hugo_sites_build.go b/hugolib/hugo_sites_build.go index 52ed34bf3..f86d425b3 100644 --- a/hugolib/hugo_sites_build.go +++ b/hugolib/hugo_sites_build.go @@ -22,6 +22,7 @@ import ( "strings" "time" + "github.com/gohugoio/hugo/langs" "github.com/gohugoio/hugo/publisher" "github.com/gohugoio/hugo/hugofs" @@ -40,6 +41,11 @@ import ( "github.com/gohugoio/hugo/helpers" ) +func init() { + // To avoid circular dependencies, we set this here. + langs.DeprecationFunc = helpers.Deprecated +} + // Build builds all sites. If filesystem events are provided, // this is considered to be a potential partial rebuild. func (h *HugoSites) Build(config BuildCfg, events ...fsnotify.Event) error { |