cvs: phpweb /include langchooser.inc

From: Date: Thu, 15 May 2003 17:05:17 +0000
Subject: cvs: phpweb /include langchooser.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17702@lists.php.net to get a copy of this message
wez Thu May 15 13:05:17 2003 EDT Modified files: /phpweb/include langchooser.inc Log: Less stat() calls. Index: phpweb/include/langchooser.inc diff -u phpweb/include/langchooser.inc:1.20 phpweb/include/langchooser.inc:1.21 --- phpweb/include/langchooser.inc:1.20 Tue May 13 20:50:53 2003 +++ phpweb/include/langchooser.inc Thu May 15 13:05:17 2003 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: langchooser.inc,v 1.20 2003/05/14 00:50:53 jacques Exp $ +// $Id: langchooser.inc,v 1.21 2003/05/15 17:05:17 wez Exp $ /* @@ -154,12 +154,15 @@ // As most of the language dependant operations involve manual // page display (lookup, search, shortcuts), we will check for // the index file of manuals. +/* foreach ($languages as $language) { if (file_exists($_SERVER['DOCUMENT_ROOT'] . "/manual/$language/index.php")) { $selected = $language; break; } } +*/ + $selected = $langs[0]; // Return with all found data return array($selected, $explicitly_specified, $parsed_langs);

« previous php.mirrors (#17702) next »