[web-php] master: Fix: Remove unused parameter
| From: | Andreas Möller via GitHub | Date: | Tue, 28 Jun 2022 12:38:22 +0000 |
| Subject: | [web-php] master: Fix: Remove unused parameter | ||
| Groups: | php.webmaster | ||
| Request: | Send a blank email to php-webmaster+get-30158@lists.php.net to get a copy of this message | ||
Author: Andreas Möller (localheinz)
Committer: GitHub (web-flow)
Pusher: cmb69
Date: 2022-06-28T14:32:24+02:00
Commit: https://github.com/php/web-php/commit/30796f6f06b6d6fc6e4376ab746d2c1404b36598
Raw diff: https://github.com/php/web-php/commit/30796f6f06b6d6fc6e4376ab746d2c1404b36598.diff
Fix: Remove unused parameter
Closes GH-571.
Changed paths:
M include/layout.inc
M mirror.php
Diff:
diff --git a/include/layout.inc b/include/layout.inc
index a6c21060b..8ef24b111 100644
--- a/include/layout.inc
+++ b/include/layout.inc
@@ -83,7 +83,7 @@ function resize_image($img, $width = 1, $height = 1)
// Return an <img> tag for a given image file available on the server
function make_image($file, $alt = FALSE, $align = FALSE, $extras = FALSE,
- $dir = '/images', $border = 0, $addsize = TRUE)
+ $dir = '/images', $addsize = TRUE)
{
// If no / was provided at the start of $dir, add it
$webdir = $_SERVER['MYSITE'] . ($dir[0] == '/' ? '' :
'/') . $dir;
@@ -118,9 +118,9 @@ function make_image($file, $alt = FALSE, $align = FALSE, $extras = FALSE,
// Print an <img> tag out for a given file
function print_image($file, $alt = FALSE, $align = FALSE, $extras = FALSE,
- $dir = '/images', $border = 0)
+ $dir = '/images')
{
- echo make_image($file, $alt, $align, $extras, $dir, $border);
+ echo make_image($file, $alt, $align, $extras, $dir);
}
// Shortcut to usual news image printing (right floating
@@ -141,7 +141,7 @@ function make_submit($file, $alt = FALSE, $align = FALSE, $extras = FALSE,
// Get an image without size info and convert the
// border attribute to use CSS, as border="" is not
// supported on <input> elements in [X]HTML
- $img = make_image($file, $alt, $align, $extras, $dir, 0, FALSE);
+ $img = make_image($file, $alt, $align, $extras, $dir, FALSE);
$img = str_replace(
"border=\"$border\"",
"style=\"border: {$border}px;\"",
diff --git a/mirror.php b/mirror.php
index 4c25f76f8..c153bc01e 100644
--- a/mirror.php
+++ b/mirror.php
@@ -33,8 +33,7 @@
htmlspecialchars(mirror_provider()),
FALSE,
FALSE,
- 'backend',
- 0
+ 'backend'
);
// Add size information depending on mirror type