Skip to content

Commit 6eaef8c

Browse files
committed
Admin: Fix default platform language saving through button - refs chamilo#6796
1 parent 0e6d970 commit 6eaef8c

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

public/main/admin/languages.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -131,7 +131,7 @@
131131
['id = ?' => $postId]
132132
);
133133
if (isset($_POST['platformlanguage']) && '' != $_POST['platformlanguage']) {
134-
api_set_setting('platformLanguage', $_POST['platformlanguage'], null, null, api_get_current_access_url_id());
134+
api_set_setting('platform_language', $_POST['platformlanguage'], null, 'language', api_get_current_access_url_id());
135135
header("Location: $url");
136136
exit;
137137
}
@@ -258,7 +258,7 @@
258258
$row_td[] = '
259259
<input type="hidden" name="edit_id" value="'.$id.'" />
260260
<input type="text" name="txt_name" value="'.$row['original_name'].'" />
261-
<input type="checkbox" '.$checked.' name="platformlanguage" id="platformlanguage" value="'.$row['english_name'].'" />
261+
<input type="checkbox" '.$checked.' name="platformlanguage" id="platformlanguage" value="'.$row['isocode'].'" />
262262
<label for="platformlanguage">'.sprintf(get_lang('%s as platform language'), $row['original_name']).'</label>
263263
<input class="btn btn--primary" type="submit" name="Submit" value="'.get_lang('Validate').'" />
264264
<a name="value" />';

0 commit comments

Comments
 (0)