summaryrefslogtreecommitdiffstats
path: root/web/lib/aur.inc
diff options
context:
space:
mode:
authoreric <eric>2004-06-25 18:41:37 +0200
committereric <eric>2004-06-25 18:41:37 +0200
commit5cbbf11c8bf72a1b80dc72e27d5737c7d79a5903 (patch)
treeb5ec1fa983c02bfff89064df9dc8a2a5b0c6875c /web/lib/aur.inc
parente7f806e43c8ccf0d4c8eb49b0020a99deb88a987 (diff)
downloadaur-5cbbf11c8bf72a1b80dc72e27d5737c7d79a5903.tar.gz
aur-5cbbf11c8bf72a1b80dc72e27d5737c7d79a5903.tar.xz
less/more buttons work on packages
Diffstat (limited to 'web/lib/aur.inc')
-rw-r--r--web/lib/aur.inc9
1 files changed, 5 insertions, 4 deletions
diff --git a/web/lib/aur.inc b/web/lib/aur.inc
index def41c6f..f59e63a6 100644
--- a/web/lib/aur.inc
+++ b/web/lib/aur.inc
@@ -294,6 +294,7 @@ function set_lang() {
# common header
#
function html_header() {
+ global $_SERVER;
global $_COOKIE;
global $LANG;
print "<?xml version=\"1.0\" encoding=\"UTF-8\"?>\n";
@@ -332,10 +333,10 @@ function html_header() {
# XXX CSS help - a:link, a:visited, etc are defined, but I don't want to
# use the defaults. Is this the way to override them?
#
- print "<a href='/index.php?setlang=en'><span class='sideBarSmallHeader'>English</span></a> ";
- print "<a href='/index.php?setlang=es'><span class='sideBarSmallHeader'>Español</span></a> ";
- print "<a href='/index.php?setlang=de'><span class='sideBarSmallHeader'>Deutsch</span></a> ";
- print "<a href='/index.php?setlang=fr'><span class='sideBarSmallHeader'>Français</span></a>";
+ print "<a href='".$_SERVER["PHP_SELF"]."?setlang=en'><span class='sideBarSmallHeader'>English</span></a> ";
+ print "<a href='".$_SERVER["PHP_SELF"]."?setlang=es'><span class='sideBarSmallHeader'>Español</span></a> ";
+ print "<a href='".$_SERVER["PHP_SELF"]."?setlang=de'><span class='sideBarSmallHeader'>Deutsch</span></a> ";
+ print "<a href='".$_SERVER["PHP_SELF"]."?setlang=fr'><span class='sideBarSmallHeader'>Français</span></a>";
print " </td>\n";
print " </tr>\n";
print " </table>\n";