[or-cvs] Revert side effect from using the languages list instead a ...

Peter Palfrader weasel at seul.org
Wed Oct 5 02:15:30 UTC 2005


Update of /home/or/cvsroot/website/include
In directory moria:/tmp/cvs-serv6978/include

Modified Files:
	head.wmi 
Log Message:
Revert side effect from using the languages list instead a readdir in header:
  The english language version does not need to link the foo.en.html file, neither does the german page have to link the german version of itself.

Index: head.wmi
===================================================================
RCS file: /home/or/cvsroot/website/include/head.wmi,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -d -r1.2 -r1.3
--- head.wmi	5 Oct 2005 02:05:59 -0000	1.2
+++ head.wmi	5 Oct 2005 02:15:28 -0000	1.3
@@ -46,6 +46,7 @@
 	  $page = $WML_SRC_FILENAME;
 	  $page =~ s/\.wml//;
 	  for my $dir (sort {$LANGUAGES{$a} cmp $LANGUAGES{$b}} @LANGUAGES) {
+	    next if $dir eq '$(LANG)';
 	    printf('<a href="%s.%s.html"><img src="$(IMGROOT)/%s.png" alt="%s" /></a>', $page, $dir, $dir, $LANGUAGES{$dir}) if (-e "$dir/$WML_SRC_FILENAME");
 	  };
 	:>



More information about the tor-commits mailing list