diff --git a/view/templates/api_photo_detail_xml.tpl b/view/templates/api_photo_detail_xml.tpl
index 335ec0a9d..0b0602901 100644
--- a/view/templates/api_photo_detail_xml.tpl
+++ b/view/templates/api_photo_detail_xml.tpl
@@ -12,9 +12,9 @@
{{$photo.width}}
{{$photo.datasize}}
1
- {{foreach $photo.link as $scale => $url}}
+ {{foreach $photo.link as $scale => $url}}
- {{/foreach}}
+ {{/foreach}}
{{if $photo.data}}
{{$photo.data}}
{{/if}}