mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00:00
Fixed indentation and removed //todo comments.
This commit is contained in:
parent
43fc7f93f2
commit
94785f34f6
@ -1071,7 +1071,7 @@ class Translatable extends DataExtension implements PermissionProvider {
|
|||||||
));
|
));
|
||||||
if (!$tab->fieldByName('existingtrans')) {
|
if (!$tab->fieldByName('existingtrans')) {
|
||||||
$existingTransHTML = '<ul>';
|
$existingTransHTML = '<ul>';
|
||||||
if ($existingTranslations = $this->getTranslations()) { // TODO PR
|
if ($existingTranslations = $this->getTranslations()) {
|
||||||
foreach ($existingTranslations as $existingTranslation) {
|
foreach ($existingTranslations as $existingTranslation) {
|
||||||
if ($existingTranslation && $existingTranslation->hasMethod('CMSEditLink')) {
|
if ($existingTranslation && $existingTranslation->hasMethod('CMSEditLink')) {
|
||||||
$existingTransHTML .= sprintf(
|
$existingTransHTML .= sprintf(
|
||||||
@ -1084,7 +1084,7 @@ class Translatable extends DataExtension implements PermissionProvider {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
} // TODO PR
|
}
|
||||||
$existingTransHTML .= '</ul>';
|
$existingTransHTML .= '</ul>';
|
||||||
$tab->push(new LiteralField('existingtrans', $existingTransHTML));
|
$tab->push(new LiteralField('existingtrans', $existingTransHTML));
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user