Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: kamil-tekiela
Date: 2023-12-06T14:42:03+01:00

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

Fix: Inline variables (#856)

Changed paths:
  M  include/shared-manual.inc
  M  quickref.php


Diff:

diff --git a/include/shared-manual.inc b/include/shared-manual.inc
index b25a9bd39e..acabb1fff4 100644
--- a/include/shared-manual.inc
+++ b/include/shared-manual.inc
@@ -385,11 +385,10 @@ function manual_footer(): void {
     global $USERNOTES, $__RELATED;
 
     manual_notes($USERNOTES);
-    $config = [
+    site_footer([
         'related_menu' => $__RELATED['toc'],
         'related_menu_deprecated' => $__RELATED['toc_deprecated']
-    ];
-    site_footer($config);
+    ]);
 }
 
 // This function takes a DateTime object and returns a formated string of the 
time difference relative to now
diff --git a/quickref.php b/quickref.php
index 62802e732b..8fd1479bfa 100644
--- a/quickref.php
+++ b/quickref.php
@@ -131,9 +131,7 @@ function quickref_table($functions, $sort = true): void
 <?php
 quickref_table($maybe, false);
 
-$config = [
+site_footer([
     "sidebar" => '<p class="panel"><a href="/search.php?show=all&amp;pattern=' 
. $notfound_enc . '">Full website search</a>',
-];
-
-site_footer($config);
+]);
 }

-- 
PHP Webmaster List Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to