Skip to content

Commit 2621743

Browse files
committed
Bring back 'View Source' on php.net
1 parent a6e5527 commit 2621743

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

include/footer.inc

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,9 @@
6868
<li><a href="/contact.php">Contact</a></li>
6969
<li><a href="/sites.php">Other PHP.net sites</a></li>
7070
<li><a href="/privacy.php">Privacy policy</a></li>
71+
<?php if (!empty($_SERVER['BASE_PAGE'])): ?>
72+
<li><a href="https://github.com/php/web-php/blob/master/<?php echo urlencode($_SERVER['BASE_PAGE']); ?>">View Source</a></li>
73+
<?php endif; ?>
7174
</ul>
7275
</div>
7376
</div>

0 commit comments

Comments
 (0)