1
0
mirror of https://github.com/php/web-php.git synced 2026-04-23 06:58:14 +02:00

Revert "BASE_HREF's host part differs from HTTP_HOST (www prepended) causing issues in Opera 12"

This reverts commit 7ab7b50ac4.
This commit is contained in:
Hannes Magnusson
2013-12-04 11:01:15 -08:00
parent 4e50fab35f
commit 657f447aad
+3 -1
View File
@@ -65,7 +65,9 @@ if (isset($shortname) && $shortname) {
<script type="text/javascript" src="<?php echo $STATIC_ROOT ?>js/ext/html5.js"></script>
<![endif]-->
<base href="http://<?php echo $_SERVER["HTTP_HOST"] . $_SERVER["SCRIPT_NAME"] ?>">
<?php if (!empty($_SERVER["BASE_HREF"])): ?>
<base href="<?php echo $_SERVER["BASE_HREF"] ?>">
<?php endif ?>
<?php
$jsfiles = array('ext/modernizr.js');