cvs: phpweb /include layout.inc
| From: | Sander Roobol | Date: | Mon, 17 Jun 2002 10:39:24 +0000 |
| Subject: | cvs: phpweb /include layout.inc | ||
| Groups: | php.mirrors | ||
| Request: | Send a blank email to php-mirrors+get-10873@lists.php.net to get a copy of this message | ||
sander Mon Jun 17 06:39:24 2002 EDT
Modified files:
/phpweb/include layout.inc
Log:
Fix search (hopefully)
Index: phpweb/include/layout.inc
diff -u phpweb/include/layout.inc:1.89 phpweb/include/layout.inc:1.90
--- phpweb/include/layout.inc:1.89 Sun Jun 16 16:09:45 2002
+++ phpweb/include/layout.inc Mon Jun 17 06:39:24 2002
@@ -1,5 +1,5 @@
<?php
-/* $Id: layout.inc,v 1.89 2002/06/16 20:09:45 sander Exp $ */
+/* $Id: layout.inc,v 1.90 2002/06/17 10:39:24 sander Exp $ */
# spacer()
# print a IMG tag for a sized spacer GIF
@@ -182,7 +182,7 @@
#
function commonHeader($title="",$dont_enclose=0,$headers_gone=0) {
- global $MYSITE, $enclosed;
+ global $MYSITE, $enclosed, $LANG;
global $SIDEBAR_DATA;
?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<html>
@@ -223,7 +223,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 echo
htmlspecialchars($lang); ?>">
+<input type="hidden" name="lang" value="<?php if(empty($LANG)) echo
htmlspecialchars(default_language()); else echo htmlspecialchars($LANG); ?>">
<small>search for</small>
<input class="small" type="text" name="pattern" value=""
size="30" />
<small>in the</small>