Skip to content

Commit

Permalink
Show button to translate extra fields when a sub language is the plat…
Browse files Browse the repository at this point in the history
…form language - refs BT#11015
  • Loading branch information
AngelFQC committed Jun 8, 2016
1 parent 6ce89c4 commit 6084ff7
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions main/inc/lib/extra_field.lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -1783,11 +1783,11 @@ public function return_form($url, $action)

$form->addElement('header', $header);

if ($action === 'edit') {
$platformLanguage = api_get_setting('platformLanguage');
$languageId = api_get_language_id($platformLanguage);
$languageInfo = api_get_language_info($languageId);
$platformLanguage = api_get_setting('platformLanguage');
$languageId = api_get_language_id($platformLanguage);
$languageInfo = api_get_language_info($languageId);

if ($action === 'edit' && $languageInfo['parent_id']) {
$translateUrl = api_get_path(WEB_CODE_PATH) . 'admin/sub_language.php?' . http_build_query([
'id' => $languageInfo['parent_id'],
'action' => 'registersublanguage',
Expand Down

0 comments on commit 6084ff7

Please sign in to comment.