cvs: phpweb /include langchooser.inc

From: Date: Sat, 01 Mar 2003 20:50:46 +0000
Subject: cvs: phpweb /include langchooser.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-15975@lists.php.net to get a copy of this message
goba Sat Mar 1 15:50:46 2003 EDT Modified files: /phpweb/include langchooser.inc Log: Provide a default for the stipped URI, so it works if the language is not specified... Index: phpweb/include/langchooser.inc diff -u phpweb/include/langchooser.inc:1.7 phpweb/include/langchooser.inc:1.8 --- phpweb/include/langchooser.inc:1.7 Sat Mar 1 11:03:44 2003 +++ phpweb/include/langchooser.inc Sat Mar 1 15:50:46 2003 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: langchooser.inc,v 1.7 2003/03/01 16:03:44 goba Exp $ +// $Id: langchooser.inc,v 1.8 2003/03/01 20:50:46 goba Exp $ /* @@ -22,6 +22,9 @@ // Empty languages array, and preferred language $LANGS = array(); $LANG = ''; + +// Default STRIPPED_URI +$_SERVER['STRIPPED_URI'] = $_SERVER['REQUEST_URI']; // Specified for the request (GET/POST parameter) if (isset($_REQUEST['lang'])) { language_add($_REQUEST['lang']); }

« previous php.mirrors (#15975) next »