Commit:    4d37acb1d628be77c71ea8fd7f78559db4e55f09
Author:    Peter Cowburn <[email protected]>         Thu, 6 Jan 2011 16:09:59 
+0000
Parents:   ad5096c0e3972bd3deef347d29f205e63b7ee886
Branches:  master

Link:       
http://git.php.net/?p=web/php.git;a=commitdiff;h=4d37acb1d628be77c71ea8fd7f78559db4e55f09

Log:
Don't use <base> tag if BASE_HREF is not available (thanks Anthony Sterling)

Changed paths:
  M  include/header.inc


Diff:
diff --git a/include/header.inc b/include/header.inc
index 9c96439..f7ad92f 100644
--- a/include/header.inc
+++ b/include/header.inc
@@ -45,7 +45,9 @@ if ($shortname) {
  }
  </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>


--
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to