Author: haszi (haszi)
Committer: GitHub (web-flow)
Pusher: Girgias
Date: 2024-06-27T18:06:15+01:00

Commit: 
https://github.com/php/web-php/commit/6e76f1a1e867e2d723a770324593c17337c855b9
Raw diff: 
https://github.com/php/web-php/commit/6e76f1a1e867e2d723a770324593c17337c855b9.diff

Link to the documentations' copyright page on doc pages (#1013)

Co-authored-by: haszi <haszik...@gmail.com>

Changed paths:
  M  include/footer.inc


Diff:

diff --git a/include/footer.inc b/include/footer.inc
index 6386a9aa24..f4dad0d68e 100644
--- a/include/footer.inc
+++ b/include/footer.inc
@@ -63,7 +63,19 @@
     <div class="container footer-content">
       <div class="row-fluid">
       <ul class="footmenu">
+<?php
+global $LANG;
+if (!empty($_SERVER['BASE_PAGE'])
+    && str_starts_with($_SERVER['BASE_PAGE'], 'manual/' . $LANG . '/')) {
+?>
+        <li><a href="/manual/<?php echo $LANG; ?>/copyright.php">Copyright 
&copy; 2001-<?php echo date('Y'); ?> The PHP Documentation Group</a></li>
+<?php
+} else {
+?>
         <li><a href="/copyright.php">Copyright &copy; 2001-<?php echo 
date('Y'); ?> The PHP Group</a></li>
+<?php
+}
+?>
         <li><a href="/my.php">My PHP.net</a></li>
         <li><a href="/contact.php">Contact</a></li>
         <li><a href="/sites.php">Other PHP.net sites</a></li>

Reply via email to