[web-php] master: Remove broken view-source link on manual pages
| From: | rongzedong via GitHub | Date: | Tue, 22 Nov 2022 11:08:19 +0000 |
| Subject: | [web-php] master: Remove broken view-source link on manual pages | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30642@lists.php.net to get a copy of this message | ||
Author: rongzedong (rongzedong)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2022-11-22T11:57:26+01:00
Commit: https://github.com/php/web-php/commit/e04e1d7f357ad59840163d436d8b8a36574b3cc2
Raw diff: https://github.com/php/web-php/commit/e04e1d7f357ad59840163d436d8b8a36574b3cc2.diff
Remove broken view-source link on manual pages
Closes GH-702.
Changed paths:
M include/footer.inc
Diff:
diff --git a/include/footer.inc b/include/footer.inc
index 380815dd3..1f89efa30 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -68,7 +68,7 @@
<li><a href="/contact.php">Contact</a></li>
<li><a href="/sites.php">Other PHP.net sites</a></li>
<li><a href="/privacy.php">Privacy policy</a></li>
-<?php if (!empty($_SERVER['BASE_PAGE'])): ?>
+<?php if (!empty($_SERVER['BASE_PAGE']) &&
strncmp($_SERVER['BASE_PAGE'], 'manual', 6) !== 0): ?>
<li><a href="https://github.com/php/web-php/blob/master/<?php
echo urlencode($_SERVER['BASE_PAGE']); ?>">View Source</a></li>
<?php endif; ?>
</ul>