|
@@ 171-177 (lines=7) @@
|
| 168 |
|
return $this->owner->redirect($url); |
| 169 |
|
} |
| 170 |
|
|
| 171 |
|
public function updateLink(&$link) |
| 172 |
|
{ |
| 173 |
|
$locale = $this->owner->Locale ? $this->owner->Locale : Translatable::get_current_locale(); |
| 174 |
|
if ($locale) { |
| 175 |
|
$link = Controller::join_links($link, '?Locale=' . $locale); |
| 176 |
|
} |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
public function updateLinkWithSearch(&$link) |
| 180 |
|
{ |
|
@@ 179-185 (lines=7) @@
|
| 176 |
|
} |
| 177 |
|
} |
| 178 |
|
|
| 179 |
|
public function updateLinkWithSearch(&$link) |
| 180 |
|
{ |
| 181 |
|
$locale = $this->owner->Locale ? $this->owner->Locale : Translatable::get_current_locale(); |
| 182 |
|
if ($locale) { |
| 183 |
|
$link = Controller::join_links($link, '?Locale=' . $locale); |
| 184 |
|
} |
| 185 |
|
} |
| 186 |
|
|
| 187 |
|
public function updateExtraTreeTools(&$html) |
| 188 |
|
{ |
|
@@ 193-199 (lines=7) @@
|
| 190 |
|
$html = $this->LangForm()->forTemplate() . $html; |
| 191 |
|
} |
| 192 |
|
|
| 193 |
|
public function updateLinkPageAdd(&$link) |
| 194 |
|
{ |
| 195 |
|
$locale = $this->owner->Locale ? $this->owner->Locale : Translatable::get_current_locale(); |
| 196 |
|
if ($locale) { |
| 197 |
|
$link = Controller::join_links($link, '?Locale=' . $locale); |
| 198 |
|
} |
| 199 |
|
} |
| 200 |
|
|
| 201 |
|
/** |
| 202 |
|
* Returns a form with all languages with languages already used appearing first. |