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:
Ingo Schommer 2012-08-16 09:30:59 +02:00
parent cb3515a4d5
commit 1eb107bbaf

View File

@ -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.