cvs: php-gtk-web /include shared-manual.inc

[email protected] ("Steph Fox")
Newsgroups php.gtk.webmaster
Message-ID <cvssfox1144638834@cvsserver>
sfox		Mon Apr 10 03:13:54 2006 UTC

  Modified files:              
    /php-gtk-web/include	shared-manual.inc 
  Log:
  Hide translations until they have some material in them.
  
http://cvs.php.net/viewcvs.cgi/php-gtk-web/include/shared-manual.inc?r1=1.63&r2=1.64&diff_format=u
Index: php-gtk-web/include/shared-manual.inc
diff -u php-gtk-web/include/shared-manual.inc:1.63 php-gtk-web/include/shared-manual.inc:1.64
--- php-gtk-web/include/shared-manual.inc:1.63	Sat Apr  8 13:09:08 2006
+++ php-gtk-web/include/shared-manual.inc	Mon Apr 10 03:13:54 2006
@@ -141,12 +141,12 @@
 
 #	} else {
 
-		global $LANGUAGES;
+		global $LANGUAGES, $man2_languages;
 		$links = array();
 		if($LANGUAGES){
 			foreach($LANGUAGES as $code=>$name) {
-				if (file_exists("../../manual/$code/$id")) {
-					$links[] = make_link("../../manual/$code/$id", $name);
+				if (in_array($code, $man2_languages) && file_exists("../$code/$id")) {
+					$links[] = make_link("../$code/$id", $name);
 					}
 				}
 			}
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.