svn: /web/php/trunk/include/ header.inc

From: Date: Thu, 06 Jan 2011 16:09:59 +0000
Subject: svn: /web/php/trunk/include/ header.inc
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-10238@lists.php.net to get a copy of this message
salathe Thu, 06 Jan 2011 16:09:59 +0000 Revision: http://svn.php.net/viewvc?view=revision&revision=307166 Log: Don't use <base> tag if BASE_HREF is not available (thanks Anthony Sterling) Changed paths: U web/php/trunk/include/header.inc Modified: web/php/trunk/include/header.inc =================================================================== --- web/php/trunk/include/header.inc 2011-01-06 15:34:17 UTC (rev 307165) +++ web/php/trunk/include/header.inc 2011-01-06 16:09:59 UTC (rev 307166) @@ -45,7 +45,9 @@ } </script> <script type="text/javascript" src="<?php echo $STATIC_ROOT ?>js/common.js<?php echo $v?>"></script> +<?php if (!empty($_SERVER["BASE_HREF"])): ?> <base href="<?php echo $_SERVER["BASE_HREF"] ?>" /> +<?php endif ?> </head> <body>

« previous php.webmaster (#10238) next »