Fix nil error when some pages are rendered outside request context (#19427)

This commit is contained in:
wxiaoguang 2022-04-20 07:30:09 +08:00 committed by GitHub
parent 18727df73a
commit a56fcdfa8f
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
{{AppVer}} {{AppVer}}
{{end}} {{end}}
{{end}} {{end}}
{{if ShowFooterTemplateLoadTime}} {{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong> {{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
{{.i18n.Tr "template"}} {{.i18n.Tr "template"}}
{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong> {{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>