diff --git a/code/model/Translatable.php b/code/model/Translatable.php index f79b727..6505b9d 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1468,16 +1468,16 @@ class Translatable extends DataExtension implements PermissionProvider { $template = '' . "\n"; $translations = $this->owner->getTranslations(); if($translations) { - $translations = $translations->toArray(); - $translations[] = $this->owner; + $translations = $translations->toArray(); + $translations[] = $this->owner; - foreach($translations as $translation) { - $tags .= sprintf($template, - Convert::raw2xml($translation->Title), - i18n::convert_rfc1766($translation->Locale), - $translation->AbsoluteLink() - ); - } + foreach($translations as $translation) { + $tags .= sprintf($template, + Convert::raw2xml($translation->Title), + i18n::convert_rfc1766($translation->Locale), + $translation->AbsoluteLink() + ); + } } }