cvs: phpweb /include layout.inc

From: Date: Sun, 02 Mar 2003 15:51:36 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-15996@lists.php.net to get a copy of this message
goba Sun Mar 2 10:51:36 2003 EDT Modified files: /phpweb/include layout.inc Log: Only print out language, if explicitly specified (on manual pages). Otherwise, the language to use for the search can be computed on the fly from other implicit sources (which won't change between the two requests, unlike the explicit spec). Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.122 phpweb/include/layout.inc:1.123 --- phpweb/include/layout.inc:1.122 Sun Mar 2 06:09:51 2003 +++ phpweb/include/layout.inc Sun Mar 2 10:51:36 2003 @@ -1,6 +1,6 @@ <?php -/* $Id: layout.inc,v 1.122 2003/03/02 11:09:51 goba Exp $ */ +/* $Id: layout.inc,v 1.123 2003/03/02 15:51:36 goba Exp $ */ // Print an image for a sized spacer function spacer($width = 1, $height = 1, $return = false, $align = false, $extras = false) @@ -197,8 +197,7 @@ # function commonHeader($title="",$dont_enclose=0,$headers_gone=0) { - global $MYSITE, $enclosed, $LANG; - global $SIDEBAR_DATA; + global $MYSITE, $enclosed, $EXPL_LANG, $SIDEBAR_DATA; ?><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN"> <html> <head> @@ -240,7 +239,11 @@ <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 $LANG; ?>" /> +<?php + if (isset($EXPL_LANG)) { + echo '<input type="hidden" name="lang" value="'. $EXPL_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>

« previous php.mirrors (#15996) next »