summaryrefslogtreecommitdiff
path: root/pages/account/41.php
diff options
context:
space:
mode:
authorBenny Baumann <BenBE@geshi.org>2013-03-13 09:09:14 +0100
committerBenny Baumann <BenBE@geshi.org>2013-03-13 09:09:14 +0100
commit7c5a5b634e1dd9267de4492b3cbea47b139c200f (patch)
tree9cfb29bbd33422639273a20472dbf7df25b7273e /pages/account/41.php
parentde8c90a4a9d2b1cdc9661283553ea406bf40947e (diff)
parente876e93e5941e295807c311a990775a2188d4d4a (diff)
downloadcacert-devel-7c5a5b634e1dd9267de4492b3cbea47b139c200f.tar.gz
cacert-devel-7c5a5b634e1dd9267de4492b3cbea47b139c200f.tar.xz
cacert-devel-7c5a5b634e1dd9267de4492b3cbea47b139c200f.zip
Merge branch 'bug-1124' into testserver-stable
Diffstat (limited to 'pages/account/41.php')
-rw-r--r--pages/account/41.php10
1 files changed, 7 insertions, 3 deletions
diff --git a/pages/account/41.php b/pages/account/41.php
index 8e35876..e943093 100644
--- a/pages/account/41.php
+++ b/pages/account/41.php
@@ -69,12 +69,16 @@ require_once($_SESSION['_config']['filepath'].'/includes/lib/l10n.php');
<td class="DataTD"><?=_("Secondary languages")?>:</td>
<td class="DataTD"><select name="addlang">
<?
- $query = "select * from `languages` order by `locale`";
+ $query = "select * from `languages` order by `lang`,`country`";
$res = mysql_query($query);
while($row = mysql_fetch_assoc($res))
{
- echo "<option value='".sanitizeHTML($row['locale'])."'";
- echo ">".$row['lang']." - ".$row['country']."</option>\n";
+ printf("<option value=\"%s\">[%s] %s (%s)</option>\n",
+ sanitizeHTML($row['locale']),
+ sanitizeHTML($row['locale']),
+ sanitizeHTML($row['lang']),
+ sanitizeHTML($row['country'])
+ );
}
?>
</select>