mirror of
https://github.com/silverstripe/silverstripe-translatable
synced 2024-10-22 11:05:59 +02:00
BUG Setting locale on new pages form
Previously creating a new page in non-default locale wasn't allowed due to this bug.
This commit is contained in:
parent
cb3515a4d5
commit
1eb107bbaf
@ -118,6 +118,10 @@ class TranslatableCMSMainExtension extends Extension {
|
||||
function updateExtraTreeTools(&$html) {
|
||||
$html = $this->LangForm()->forTemplate() . $html;
|
||||
}
|
||||
|
||||
function updateLinkPageAdd(&$link) {
|
||||
if($this->owner->Locale) $link = Controller::join_links($link, '?locale=' . $this->owner->Locale);
|
||||
}
|
||||
|
||||
/**
|
||||
* Returns a form with all languages with languages already used appearing first.
|
||||
|
Loading…
Reference in New Issue
Block a user