Tholam has uploaded a new change for review.
https://gerrit.wikimedia.org/r/96416
Change subject: Updated ImagePage to use HiDPI
......................................................................
Updated ImagePage to use HiDPI
Changed processResponsiveImages method in Linker class from
protected to public so that it may be used in the ImagePage class.
called the method in the openShowImage method to generate the srcset.
Bug: 56969
Change-Id: I2494ce98ba1a32d5a963b53482929de9abb048fd
---
M includes/ImagePage.php
M includes/Linker.php
2 files changed, 2 insertions(+), 1 deletion(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core
refs/changes/16/96416/1
diff --git a/includes/ImagePage.php b/includes/ImagePage.php
index d6b8a03..4ea1712 100644
--- a/includes/ImagePage.php
+++ b/includes/ImagePage.php
@@ -415,6 +415,7 @@
$params['width'] = $width;
$params['height'] = $height;
$thumbnail = $this->displayImg->transform(
$params );
+ Linker::processResponsiveImages(
$this->displayImg, $thumbnail, $params );
$anchorclose = Html::rawElement( 'div', array(
'class' => 'mw-filepage-resolutioninfo' ), $msgsmall );
diff --git a/includes/Linker.php b/includes/Linker.php
index 4dcdfd5..895f0f2 100644
--- a/includes/Linker.php
+++ b/includes/Linker.php
@@ -902,7 +902,7 @@
* @param MediaOutput $thumb
* @param array $hp image parameters
*/
- protected static function processResponsiveImages( $file, $thumb, $hp )
{
+ public static function processResponsiveImages( $file, $thumb, $hp ) {
global $wgResponsiveImages;
if ( $wgResponsiveImages ) {
$hp15 = $hp;
--
To view, visit https://gerrit.wikimedia.org/r/96416
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I2494ce98ba1a32d5a963b53482929de9abb048fd
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: Tholam <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits