cvs: phpweb /include layout.inc

From: Date: Wed, 02 Jan 2002 17:37:50 +0000
Subject: cvs: phpweb /include layout.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-8028@lists.php.net to get a copy of this message
goba Wed Jan 2 12:37:50 2002 EDT Modified files: /phpweb/include layout.inc Log: Trying to fix buggy JS, expecting the same Host name as used Index: phpweb/include/layout.inc diff -u phpweb/include/layout.inc:1.61 phpweb/include/layout.inc:1.62 --- phpweb/include/layout.inc:1.61 Tue Jan 1 19:37:01 2002 +++ phpweb/include/layout.inc Wed Jan 2 12:37:49 2002 @@ -1,5 +1,5 @@ <?php -/* $Id: layout.inc,v 1.61 2002/01/02 00:37:01 jimw Exp $ */ +/* $Id: layout.inc,v 1.62 2002/01/02 17:37:49 goba Exp $ */ # spacer() # print a IMG tag for a sized spacer GIF @@ -310,7 +310,7 @@ url = form.country.options[form.country.selectedIndex].value; if (url != '<?php echo $MYSITE; ?>') { current = window.location.href; - window.location.href = url+current.substr(<?echo strlen($MYSITE)?>); + window.location.href = url+current.substr(<?echo strpos(substr($MYSITE, 7), "/")?>); } return false; }

« previous php.mirrors (#8028) next »