Sumit has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/277603

Change subject: Apply filterContentInSection to last section
......................................................................

Apply filterContentInSection to last section

Fixes images in last section not being lazy loaded.

Bug: T130025
Change-Id: I324888faacd45dfb05d72772b43a3b626ea80063
---
M includes/MobileFormatter.php
1 file changed, 4 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/MobileFrontend 
refs/changes/03/277603/1

diff --git a/includes/MobileFormatter.php b/includes/MobileFormatter.php
index d6579de..389ef03 100644
--- a/includes/MobileFormatter.php
+++ b/includes/MobileFormatter.php
@@ -404,6 +404,10 @@
                        $sectionBody->appendChild( $node );
                }
 
+               if ( $sectionBody->hasChildNodes() ) {
+                       // Apply transformations to the last section body
+                       $this->filterContentInSection( $sectionBody, $doc, 
$sectionNumber, $transformOptions );
+               }
                // Append the last section body.
                $body->appendChild( $sectionBody );
        }

-- 
To view, visit https://gerrit.wikimedia.org/r/277603
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I324888faacd45dfb05d72772b43a3b626ea80063
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/MobileFrontend
Gerrit-Branch: master
Gerrit-Owner: Sumit <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to