Skip to content

Commit f882125

Browse files
committed
Force base ref to www.php.net, and set it only once
1 parent 753b3df commit f882125

1 file changed

Lines changed: 1 addition & 7 deletions

File tree

include/header.inc

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

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

6866
<title><?php echo $title ?></title>
6967

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

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

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

0 commit comments

Comments
 (0)