Skip to content

Commit a56fcdf

Browse files
authored
Fix nil error when some pages are rendered outside request context (#19427)
1 parent 18727df commit a56fcdf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

templates/base/footer_content.tmpl

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@
1010
{{AppVer}}
1111
{{end}}
1212
{{end}}
13-
{{if ShowFooterTemplateLoadTime}}
13+
{{if and .TemplateLoadTimes ShowFooterTemplateLoadTime}}
1414
{{.i18n.Tr "page"}}: <strong>{{LoadTimes .PageStartTime}}</strong>
1515
{{.i18n.Tr "template"}}
1616
{{if .TemplateName}} {{.TemplateName}}{{end}}: <strong>{{call .TemplateLoadTimes}}</strong>

0 commit comments

Comments
 (0)