[web-php] master: Set `$addsize` to false by default

From: Date: Thu, 01 Feb 2024 07:20:03 +0000
Subject: [web-php] master: Set `$addsize` to false by default
Groups: php.webmaster 
Request: Send a blank email to php-webmaster+get-31396@lists.php.net to get a copy of this message
Author: Sergey Panteleev (saundefined) Date: 2024-02-01T10:05:52+03:00 Commit: https://github.com/php/web-php/commit/555ac83c14db93466c53460a15b11ff82af57c3b Raw diff: https://github.com/php/web-php/commit/555ac83c14db93466c53460a15b11ff82af57c3b.diff Set $addsize to false by default In favor of css Changed paths: M include/layout.inc Diff: diff --git a/include/layout.inc b/include/layout.inc index eeedd43872..c7064ecb82 100644 --- a/include/layout.inc +++ b/include/layout.inc @@ -64,7 +64,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', $addsize = true) + $dir = '/images', $addsize = false) { // If no / was provided at the start of $dir, add it $webdir = $_SERVER['MYSITE'] . ($dir[0] == '/' ? '' : '/') . $dir;

« previous php.webmaster (#31396) next »