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

[email protected] (Peter Cowburn)
Newsgroups php.webmaster
Message-ID <[email protected]>
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>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.