Update 1.php

pull/13/head
qkqpttgf 2020-01-05 18:43:01 +08:00 committed by GitHub
parent 1390b8b189
commit 8aa3b65c40
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 1 deletions

View File

@ -675,7 +675,7 @@ textarea{
<?php
} ?>
<select class="cs-select cs-skin-elastic" id="languageSelect" name="language" onchange="changelanguage(this.options[this.options.selectedIndex].value)">
<option value="" disabled selected><?php echo $constStr['LanguageSetting'][$constStr['language']]; ?></option>
<option value="">Language</option>
<?php
foreach ($constStr['languages'] as $key1 => $value1) { ?>
<option value="<?php echo $key1; ?>"><?php echo $value1; ?></option>
@ -1154,6 +1154,7 @@ textarea{
});
function changelanguage(str)
{
if (str=='Language') str='';
document.cookie='language='+str+'; path=/';
location.href = location.href;
}