* player sex is now configurable

This commit is contained in:
slawkens
2017-08-28 18:12:55 +02:00
parent 430351aee3
commit 61bc3a616a
9 changed files with 50 additions and 36 deletions

View File

@@ -435,8 +435,8 @@ $account = $player->getAccount();
<td>Sex:</td>
<td>
<select name="sex">
<?php foreach(array('female', 'male') as $id => $sex): ?>
<option value="<?php echo $id; ?>" <?php echo ($player->getSex() == $id ? 'selected' : ''); ?>><?php echo $sex; ?></option>
<?php foreach($config['genders'] as $id => $sex): ?>
<option value="<?php echo $id; ?>" <?php echo ($player->getSex() == $id ? 'selected' : ''); ?>><?php echo strtolower($sex); ?></option>
<?php endforeach; ?>
</select>
</td>