Addshore has uploaded a new change for review.
https://gerrit.wikimedia.org/r/302681
Change subject: Debug Logging for Undefined index: width in Linker.php
......................................................................
Debug Logging for Undefined index: width in Linker.php
Bug: T138987
Change-Id: I8ac8b83812df8436fc81074c888c7fa7d9e73607
---
M includes/Linker.php
1 file changed, 8 insertions(+), 0 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/81/302681/1
diff --git a/includes/Linker.php b/includes/Linker.php
index 5e540b9..50a25f5 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -748,6 +748,14 @@
public static function processResponsiveImages( $file, $thumb, $hp ) {
global $wgResponsiveImages;
if ( $wgResponsiveImages && $thumb && !$thumb->isError() ) {
+ if ( !isset( $hp['width'] ) ) {
+ wfDebugLog(
+ 'T138987',
+ 'Undefined index: width in' .
__METHOD__,
+ 'all',
+ [ 'trace' => wfBacktrace( true ) ]
+ );
+ }
$hp15 = $hp;
$hp15['width'] = round( $hp['width'] * 1.5 );
$hp20 = $hp;
--
To view, visit https://gerrit.wikimedia.org/r/302681
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I8ac8b83812df8436fc81074c888c7fa7d9e73607
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: wmf/1.28.0-wmf.13
Gerrit-Owner: Addshore <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits