[web-php] master: Fix: Remove unused references to a global variable (#563)

From: Date: Tue, 28 Jun 2022 12:26:51 +0000
Subject: [web-php] master: Fix: Remove unused references to a global variable (#563)
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-30152@lists.php.net to get a copy of this message
Author: Andreas Möller (localheinz) Committer: GitHub (web-flow) Pusher: kamil-tekiela Date: 2022-06-28T13:20:52+01:00 Commit: https://github.com/php/web-php/commit/22fffaad7a8fd793d520037e799d4a70d4905307 Raw diff: https://github.com/php/web-php/commit/22fffaad7a8fd793d520037e799d4a70d4905307.diff Fix: Remove unused references to a global variable (#563) Changed paths: M include/do-download.inc M include/layout.inc Diff: diff --git a/include/do-download.inc b/include/do-download.inc index c5861acfc..c2ffbc4e2 100644 --- a/include/do-download.inc +++ b/include/do-download.inc @@ -25,8 +25,6 @@ function get_actual_download_file($file) // Download a file from a mirror site function download_file($mirror, $file) { - global $MYSITE; - // Redirect to the particular file if (!headers_sent()) { status_header(302); diff --git a/include/layout.inc b/include/layout.inc index 28e27ee99..aca613684 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -524,7 +524,6 @@ function site_header($title = '', $config = array()) } function site_footer($config = array()) { - global $MYSITE; require __DIR__ . "/footer.inc"; }

« previous php.webmaster (#30152) next »