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

View File

@ -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)
); );