jenkins-bot has submitted this change and it was merged.

Change subject: Better fix for gallery CSS display
......................................................................


Better fix for gallery CSS display

Change-Id: I81a13823610fce325711fbe7a7b9e268b6629cac
---
M formats/CargoGalleryFormat.php
1 file changed, 2 insertions(+), 5 deletions(-)

Approvals:
  Yaron Koren: Checked; Looks good to me, approved
  jenkins-bot: Verified



diff --git a/formats/CargoGalleryFormat.php b/formats/CargoGalleryFormat.php
index ae7977f..e1c741b 100644
--- a/formats/CargoGalleryFormat.php
+++ b/formats/CargoGalleryFormat.php
@@ -78,11 +78,8 @@
         * @return string HTML
         */
        function display( $valuesTable, $formattedValuesTable, 
$fieldDescriptions, $displayParams ) {
-               // The cache unfortunately prevents the CSS from getting
-               // displayed.
-               if ( $this->mParser != null ) {
-                       $this->mParser->disableCache();
-               }
+               $this->mOutput->addModules( 'mediawiki.page.gallery' );
+               $this->mOutput->addModuleStyles( 
'mediawiki.page.gallery.styles' );
 
                if ( array_key_exists( 'caption field', $displayParams ) ) {
                        $captionField = str_replace( '_', ' ', 
$displayParams['caption field'] );

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

Gerrit-MessageType: merged
Gerrit-Change-Id: I81a13823610fce325711fbe7a7b9e268b6629cac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

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

Reply via email to