summaryrefslogtreecommitdiff
path: root/pages/account
diff options
context:
space:
mode:
authorMichael Tänzer <neo@nhng.de>2011-10-16 06:09:25 +0200
committerMichael Tänzer <neo@nhng.de>2011-10-16 06:09:25 +0200
commit147cce7acd3ce673c494dc9b30f36b3d5554abea (patch)
tree28ef84874a81cd92558200c2a9c7a522cb94d906 /pages/account
parent6e0ae5b60fdb53fccfa90519522fb9b1cbd44e45 (diff)
downloadcacert-devel-147cce7acd3ce673c494dc9b30f36b3d5554abea.tar.gz
cacert-devel-147cce7acd3ce673c494dc9b30f36b3d5554abea.tar.xz
cacert-devel-147cce7acd3ce673c494dc9b30f36b3d5554abea.zip
bug 985: replace occurences of $_SESSION['_config']['translations']
this includes a little rewrite of reminder handling Signed-off-by: Michael Tänzer <neo@nhng.de>
Diffstat (limited to 'pages/account')
-rw-r--r--pages/account/41.php11
1 files changed, 7 insertions, 4 deletions
diff --git a/pages/account/41.php b/pages/account/41.php
index e44eec9..d2cfc8c 100644
--- a/pages/account/41.php
+++ b/pages/account/41.php
@@ -14,7 +14,11 @@
You should have received a copy of the GNU General Public License
along with this program; if not, write to the Free Software
Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
-*/ ?>
+*/
+
+require_once($_SESSION['_config']['filepath'].'/includes/lib/l10n.php');
+?>
+
<form method="post" action="account.php">
<table align="center" valign="middle" border="0" cellspacing="0" cellpadding="0" class="wrapper" width="400">
<tr>
@@ -24,11 +28,10 @@
<td class="DataTD"><?=_("My prefered language")?>:</td>
<td class="DataTD"><select name="lang">
<?
-echo $_SESSION['_config']['language'];
- foreach($_SESSION['_config']['translations'] as $key => $val)
+ foreach(L10n::$translations as $key => $val)
{
echo "<option value='$key'";
- if($key == $_SESSION['_config']['language'])
+ if($key == L10n::get_translation())
echo " selected";
echo ">$val</option>\n";
}