cvs: phpweb /include shared-manual.inc

From: Date: Sat, 09 Feb 2002 10:42:53 +0000
Subject: cvs: phpweb /include shared-manual.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-8624@lists.php.net to get a copy of this message
goba Sat Feb 9 05:42:53 2002 EDT Modified files: /phpweb/include shared-manual.inc Log: Provide plain HTML link first. Do not provide the same language with a link. Index: phpweb/include/shared-manual.inc diff -u phpweb/include/shared-manual.inc:1.125 phpweb/include/shared-manual.inc:1.126 --- phpweb/include/shared-manual.inc:1.125 Mon Oct 22 11:56:15 2001 +++ phpweb/include/shared-manual.inc Sat Feb 9 05:42:53 2002 @@ -99,14 +99,14 @@ if ($loc != 'bottom') { global $LANGUAGES; $links = array(); - foreach($LANGUAGES as $code=>$name) { - if (file_exists("../$code/$id")) { - $links[] = make_link("../$code/$id", $name); - } - } $file = substr($id,0,-4); if (file_exists("html/$file.html")) { $links[] = make_link("html/$file.html", 'Plain HTML'); + } + foreach ($LANGUAGES as $code => $name) { + if (!preg_match("!/$code/!", $PHP_SELF) && file_exists("../$code/$id")) { + $links[] = make_link("../$code/$id", $name); + } } if (count($links)) { echo 'view this page in ' . join (delim(), $links);

« previous php.mirrors (#8624) next »