Skip to content

Commit 742ae5c

Browse files
committed
Revert "Force base ref to www.php.net, and set it only once".
This is now fixed in the CDN configuration, so we can restore the old behaviour. This reverts commit f882125.
1 parent 84764ce commit 742ae5c

1 file changed

Lines changed: 7 additions & 1 deletion

File tree

include/header.inc

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,7 +61,9 @@ if (!isset($config["languages"])) {
6161
<meta charset="utf-8">
6262
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6363

64-
<base href="https://www.php.net">
64+
<?php if (!empty($_SERVER["BASE_HREF"])): ?>
65+
<base href="<?php echo $_SERVER["BASE_HREF"]; ?>">
66+
<?php endif ?>
6567

6668
<title><?php echo $title ?></title>
6769

@@ -103,6 +105,10 @@ if (!isset($config["languages"])) {
103105
<script type="text/javascript" src="/cached.php?t=<?php echo $modified?>&amp;f=<?php echo $filename?>"></script>
104106
<?php endforeach ?>
105107

108+
<?php if (!empty($_SERVER["BASE_HREF"])): ?>
109+
<base href="<?php echo $_SERVER["BASE_HREF"] ?>">
110+
<?php endif ?>
111+
106112
<?php if (isset($config['meta_tags'])) { echo $config['meta_tags']; } ?>
107113

108114
<?php if (is_primary_site()) { ?>

0 commit comments

Comments
 (0)