mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
Merge pull request #146 from hafriedlander/fix/142_malformed_links
FIX 63366327
breaking "Existing Translations" links
This commit is contained in:
commit
44584a2721
@ -1075,10 +1075,9 @@ class Translatable extends DataExtension implements PermissionProvider {
|
||||
if($existingTranslation && $existingTranslation->hasMethod('CMSEditLink')) {
|
||||
$existingTransHTML .= sprintf(
|
||||
'<li><a href="%s">%s</a></li>',
|
||||
sprintf(
|
||||
'%s/?locale=%s',
|
||||
Controller::join_links(
|
||||
$existingTranslation->CMSEditLink(),
|
||||
$existingTranslation->Locale
|
||||
'?locale='.$existingTranslation->Locale
|
||||
),
|
||||
i18n::get_locale_name($existingTranslation->Locale)
|
||||
);
|
||||
|
Loading…
Reference in New Issue
Block a user