From fa850239f4196bf6959aa50cea36c58fb0f43b3f Mon Sep 17 00:00:00 2001 From: Niklas Ekman <nikl.ekman@gmail.com> Date: Tue, 20 Aug 2013 21:35:39 +0200 Subject: [PATCH] Fixed tabs --- code/model/Translatable.php | 22 +++++++++++----------- 1 file changed, 11 insertions(+), 11 deletions(-) diff --git a/code/model/Translatable.php b/code/model/Translatable.php index 6505b9d..b0031a2 100755 --- a/code/model/Translatable.php +++ b/code/model/Translatable.php @@ -1466,18 +1466,18 @@ class Translatable extends DataExtension implements PermissionProvider { */ function MetaTags(&$tags) { $template = '<link rel="alternate" type="text/html" title="%s" hreflang="%s" href="%s" />' . "\n"; - $translations = $this->owner->getTranslations(); + $translations = $this->owner->getTranslations(); if($translations) { - $translations = $translations->toArray(); - $translations[] = $this->owner; - - foreach($translations as $translation) { - $tags .= sprintf($template, - Convert::raw2xml($translation->Title), - i18n::convert_rfc1766($translation->Locale), - $translation->AbsoluteLink() - ); - } + $translations = $translations->toArray(); + $translations[] = $this->owner; + + foreach($translations as $translation) { + $tags .= sprintf($template, + Convert::raw2xml($translation->Title), + i18n::convert_rfc1766($translation->Locale), + $translation->AbsoluteLink() + ); + } } }