mirror of
https://github.com/gohugoio/hugo.git
synced 2025-04-27 14:10:31 +03:00
parent
835579b338
commit
7104de83ce
3 changed files with 11 additions and 11 deletions
|
@ -171,7 +171,7 @@ func (ns *Namespace) TestDeprecationInfo(item, alternative string) string {
|
|||
// Internal template func, used in tests only.
|
||||
func (ns *Namespace) TestDeprecationWarn(item, alternative string) string {
|
||||
v := hugo.CurrentVersion
|
||||
v.Minor -= 6
|
||||
v.Minor -= 3
|
||||
hugo.Deprecate(item, alternative, v.String())
|
||||
return ""
|
||||
}
|
||||
|
@ -179,7 +179,7 @@ func (ns *Namespace) TestDeprecationWarn(item, alternative string) string {
|
|||
// Internal template func, used in tests only.
|
||||
func (ns *Namespace) TestDeprecationErr(item, alternative string) string {
|
||||
v := hugo.CurrentVersion
|
||||
v.Minor -= 12
|
||||
v.Minor -= 15
|
||||
hugo.Deprecate(item, alternative, v.String())
|
||||
return ""
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue