cvs: phpweb /include layout.inc
| From: | Gabor Hojtsy | Date: | Sun, 02 Mar 2003 11:09:52 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-15988@lists.php.net to get a copy of this message | ||
goba Sun Mar 2 06:09:52 2003 EDT
Modified files:
/phpweb/include layout.inc
Log:
Use the $LANG var, which always contains the used
language, and default_language() cannot help...
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.121 phpweb/include/layout.inc:1.122
--- phpweb/include/layout.inc:1.121 Sun Feb 9 05:56:17 2003
+++ phpweb/include/layout.inc Sun Mar 2 06:09:51 2003
@@ -1,6 +1,6 @@
<?php
-/* $Id: layout.inc,v 1.121 2003/02/09 10:56:17 goba Exp $ */
+/* $Id: layout.inc,v 1.122 2003/03/02 11:09:51 goba Exp $ */
// Print an image for a sized spacer
function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false)
@@ -240,7 +240,7 @@
<tr bgcolor="#666699">
<td align="right" valign="top" colspan="2"><font
color="#ffffff">
<form method="post" action="/search.php" class="thin">
-<input type="hidden" name="lang" value="<?php if(empty($LANG)) echo
htmlspecialchars(default_language()); else echo htmlspecialchars($LANG); ?>" />
+<input type="hidden" name="lang" value="<?php echo $LANG;
?>" />
<small><span title="Keyboard shortcut: Alt+S (Win), Ctrl+S
(Apple)"><u>s</u>earch for</span></small>
<input class="small" type="text" name="pattern" value=""
size="30" accesskey="s" />
<small>in the</small>