tpl: Fix language handling in partials

We now use the same code path for all templates re this.

Fixes #13612
This commit is contained in:
Bjørn Erik Pedersen
2025-04-15 09:05:24 +02:00
parent 01667275d4
commit d61b9fc605
4 changed files with 55 additions and 44 deletions

View File

@@ -724,7 +724,7 @@ func (p *Path) IsContentData() bool {
return p.pathType == TypeContentData
}
func (p Path) ForBundleType(t Type) *Path {
func (p Path) ForType(t Type) *Path {
p.pathType = t
return &p
}