Skip to content
Snippets Groups Projects
Unverified Commit 7cb21ff7 authored by Sébastien Gaya's avatar Sébastien Gaya
Browse files

fix boolean crop value in GetImageUrlOsuny

parent a070ea08
No related branches found
No related tags found
No related merge requests found
......@@ -18,9 +18,13 @@
{{ $crop := "" }}
{{ if .crop }}
{{ range $cropValues }}
{{ if eq .crop . }}
{{ $crop = . }}
{{ if eq (string .crop) "true" }}
{{ $crop = "center" }}
{{ else }}
{{ range $cropValues }}&
{{ if eq .crop . }}
{{ $crop = . }}
{{ end }}
{{ end }}
{{ end }}
{{ end }}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment