Merge pull request #146 from hafriedlander/fix/142_malformed_links

FIX 63366327 breaking "Existing Translations" links
This commit is contained in:
Mateusz U 2013-09-19 19:31:19 -07:00
commit 44584a2721
1 changed files with 3 additions and 4 deletions

View File

@ -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',
$existingTranslation->CMSEditLink(),
$existingTranslation->Locale
Controller::join_links(
$existingTranslation->CMSEditLink(),
'?locale='.$existingTranslation->Locale
),
i18n::get_locale_name($existingTranslation->Locale)
);