Author: Sara Golemon (sgolemon) Date: 2021-07-08T19:47:49Z Commit: https://github.com/php/web-php/commit/26217434617d3783b9b426dc97ea38f35bd94dfe Raw diff: https://github.com/php/web-php/commit/26217434617d3783b9b426dc97ea38f35bd94dfe.diff
Bring back 'View Source' on php.net Changed paths: M include/footer.inc Diff: diff --git a/include/footer.inc b/include/footer.inc index 1d6227f54..826795749 100644 --- a/include/footer.inc +++ b/include/footer.inc @@ -68,6 +68,9 @@ <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'])): ?> + <li><a href="https://github.com/php/web-php/blob/master/<?php echo urlencode($_SERVER['BASE_PAGE']); ?>">View Source</a></li> +<?php endif; ?> </ul> </div> </div> -- PHP Webmaster List Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php