Fixed indentation and removed //todo comments.

This commit is contained in:
Gus King 2013-10-14 02:13:59 -04:00
parent 43fc7f93f2
commit 94785f34f6

View File

@ -1069,24 +1069,24 @@ class Translatable extends DataExtension implements PermissionProvider {
_t('Translatable.EXISTING', 'Existing translations'),
3
));
if(!$tab->fieldByName('existingtrans')) {
if (!$tab->fieldByName('existingtrans')) {
$existingTransHTML = '<ul>';
if ($existingTranslations = $this->getTranslations()) { // TODO PR
if ($existingTranslations = $this->getTranslations()) {
foreach ($existingTranslations as $existingTranslation) {
if ($existingTranslation && $existingTranslation->hasMethod('CMSEditLink')) {
$existingTransHTML .= sprintf(
'<li><a href="%s">%s</a></li>',
Controller::join_links(
$existingTranslation->CMSEditLink(),
$existingTransHTML .= sprintf(
'<li><a href="%s">%s</a></li>',
Controller::join_links(
$existingTranslation->CMSEditLink(),
'?locale=' . $existingTranslation->Locale
),
i18n::get_locale_name($existingTranslation->Locale)
);
),
i18n::get_locale_name($existingTranslation->Locale)
);
}
}
}
} // TODO PR
$existingTransHTML .= '</ul>';
$tab->push(new LiteralField('existingtrans',$existingTransHTML));
$tab->push(new LiteralField('existingtrans', $existingTransHTML));
}
}
}