[web-php] master: Bring back 'View Source' on php.net

From: Date: Thu, 08 Jul 2021 19:53:14 +0000
Subject: [web-php] master: Bring back 'View Source' on php.net
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-29407@lists.php.net to get a copy of this message
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>

« previous php.webmaster (#29407) next »