mirror of
https://github.com/php/web-php.git
synced 2026-03-23 23:02:13 +01:00
Improve code for language selection (#709)
This commit is contained in:
2
my.php
2
my.php
@@ -13,7 +13,7 @@ $options = [];
|
||||
if (isset($_POST['my_lang'], $langs[$_POST['my_lang']])) {
|
||||
|
||||
// Set the language preference
|
||||
myphpnet_language($_POST['my_lang']);
|
||||
$MYPHPNET[0] = $_POST['my_lang'];
|
||||
|
||||
// Add this as first option, selected
|
||||
$options[] = '<option value="' . $_POST['my_lang'] . '" selected>' .
|
||||
|
||||
Reference in New Issue
Block a user