Roger Dingledine commited on 2005-12-30 10:07:26
Zeige 1 geänderte Dateien mit 7 Einfügungen und 1 Löschungen.
... | ... |
@@ -38,7 +38,13 @@ |
38 | 38 |
my $page = $WML_SRC_FILENAME; |
39 | 39 |
$page =~ s/\.wml//; |
40 | 40 |
if ($page ne $key) { |
41 |
- printf '<a href="%s.html.$(LANG)">%s</a>'."\n", $key, $navigation{$key}; |
|
41 |
+ if (-e "$(LANG)/$key.wml") { |
|
42 |
+ printf '<a href="%s.html.$(LANG)">%s</a>'."\n", |
|
43 |
+ $key, $navigation{$key}; |
|
44 |
+ } else { |
|
45 |
+ printf '<a href="%s.html">%s</a>'."\n", |
|
46 |
+ $key, $navigation{$key}; |
|
47 |
+ } |
|
42 | 48 |
} else { |
43 | 49 |
printf '<a class="current">%s</a>'."\n", $navigation{$key}; |
44 | 50 |
} |
45 | 51 |