Fixed tabs

This commit is contained in:
Niklas Ekman 2013-08-20 21:05:11 +02:00
parent a66de759bb
commit 6f38a21640

View File

@ -1468,16 +1468,16 @@ class Translatable extends DataExtension implements PermissionProvider {
$template = '<link rel="alternate" type="text/html" title="%s" hreflang="%s" href="%s" />' . "\n"; $template = '<link rel="alternate" type="text/html" title="%s" hreflang="%s" href="%s" />' . "\n";
$translations = $this->owner->getTranslations(); $translations = $this->owner->getTranslations();
if($translations) { if($translations) {
$translations = $translations->toArray(); $translations = $translations->toArray();
$translations[] = $this->owner; $translations[] = $this->owner;
foreach($translations as $translation) { foreach($translations as $translation) {
$tags .= sprintf($template, $tags .= sprintf($template,
Convert::raw2xml($translation->Title), Convert::raw2xml($translation->Title),
i18n::convert_rfc1766($translation->Locale), i18n::convert_rfc1766($translation->Locale),
$translation->AbsoluteLink() $translation->AbsoluteLink()
); );
} }
} }
} }