[Kos-cvs] kos-web/include main.php,1.7,1.8

thomas at kos.enix.org thomas at kos.enix.org
Sun Jan 9 14:11:06 CET 2005


Update of /var/cvs/kos/kos-web/include
In directory the-doors:/tmp/cvs-serv7259/include

Modified Files:
	main.php 
Log Message:
Page des documents en anglais

Index: main.php
===================================================================
RCS file: /var/cvs/kos/kos-web/include/main.php,v
retrieving revision 1.7
retrieving revision 1.8
diff -u -d -r1.7 -r1.8
--- main.php	30 Dec 2004 01:01:29 -0000	1.7
+++ main.php	9 Jan 2005 13:11:04 -0000	1.8
@@ -44,12 +44,17 @@
 {
 }
 
-function make_link($url, $title)
+function make_link($url, $title, $specific_lang="")
 {
   global $lang;
   global $topsrcdir;
 
-  echo "<a href=\"" . $topsrcdir . "/$url?lang=$lang\">$title</a>";
+  if($specific_lang)
+    $linklang = $specific_lang;
+  else
+    $linklang = $lang;
+
+  echo "<a href=\"" . $topsrcdir . "/$url?lang=$linklang\">$title</a>";
 }
 
 



More information about the Kos-cvs mailing list