[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[or-cvs] bugfix on the website: the header linked to the language-sp...
Update of /home2/or/cvsroot/website/include
In directory moria:/home/arma/work/onion/cvs/website/include
Modified Files:
head.wmi
Log Message:
bugfix on the website: the header linked to the language-specific
page, even if we didn't have one.
Index: head.wmi
===================================================================
RCS file: /home2/or/cvsroot/website/include/head.wmi,v
retrieving revision 1.6
retrieving revision 1.7
diff -u -p -d -r1.6 -r1.7
--- head.wmi 8 Oct 2005 12:34:51 -0000 1.6
+++ head.wmi 30 Dec 2005 09:07:26 -0000 1.7
@@ -38,11 +38,17 @@
my $page = $WML_SRC_FILENAME;
$page =~ s/\.wml//;
if ($page ne $key) {
- printf '<a href="%s.html.$(LANG)">%s</a>'."\n", $key, $navigation{$key};
- } else {
- printf '<a class="current">%s</a>'."\n", $navigation{$key};
- }
- }
+ if (-e "$(LANG)/$key.wml") {
+ printf '<a href="%s.html.$(LANG)">%s</a>'."\n",
+ $key, $navigation{$key};
+ } else {
+ printf '<a href="%s.html">%s</a>'."\n",
+ $key, $navigation{$key};
+ }
+ } else {
+ printf '<a class="current">%s</a>'."\n", $navigation{$key};
+ }
+ }
}:>
</td>
<td class="banner-right">