SilverStripe coding convetions

This commit is contained in:
Niklas Ekman 2013-08-19 10:00:08 +02:00
parent 03722d2a8e
commit a66de759bb

View File

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