summaryrefslogtreecommitdiff
path: root/web/template/header.php
diff options
context:
space:
mode:
authorLukas Fleischer <archlinux@cryptocrack.de>2012-09-18 15:19:04 +0200
committerLukas Fleischer <archlinux@cryptocrack.de>2012-09-18 15:19:30 +0200
commitc959d95fb1b247aa9fc9a76e891a8a91f728b57d (patch)
tree80a95fd47012d8d041f3c672f876069c11a7157a /web/template/header.php
parent96c36dc84f2dbce42e3af6453b7df916d07f0a39 (diff)
Fix language selection
Use "REQUEST_URI" instead of the "PHP_SELF" sever variable to determine the redirection URL for the language selection form. This fixes the language selection feature to work well with virtual URLs. Signed-off-by: Lukas Fleischer <archlinux@cryptocrack.de>
Diffstat (limited to 'web/template/header.php')
-rw-r--r--web/template/header.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/web/template/header.php b/web/template/header.php
index 2c04b58..d87ddfe 100644
--- a/web/template/header.php
+++ b/web/template/header.php
@@ -29,7 +29,7 @@
<div id="content">
<div id="lang_sub">
- <form method="get" action="<?php echo htmlspecialchars($_SERVER["PHP_SELF"], ENT_QUOTES) ?>">
+ <form method="get" action="<?php echo htmlspecialchars($_SERVER["REQUEST_URI"], ENT_QUOTES) ?>">
<fieldset>
<div>
<select name="setlang" id="id_setlang">