mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 09:05:59 +00: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')) {
|
if($existingTranslation && $existingTranslation->hasMethod('CMSEditLink')) {
|
||||||
$existingTransHTML .= sprintf(
|
$existingTransHTML .= sprintf(
|
||||||
'<li><a href="%s">%s</a></li>',
|
'<li><a href="%s">%s</a></li>',
|
||||||
sprintf(
|
Controller::join_links(
|
||||||
'%s/?locale=%s',
|
|
||||||
$existingTranslation->CMSEditLink(),
|
$existingTranslation->CMSEditLink(),
|
||||||
$existingTranslation->Locale
|
'?locale='.$existingTranslation->Locale
|
||||||
),
|
),
|
||||||
i18n::get_locale_name($existingTranslation->Locale)
|
i18n::get_locale_name($existingTranslation->Locale)
|
||||||
);
|
);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user