Yaron Koren has uploaded a new change for review.

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

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(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Cargo 
refs/changes/47/299547/1

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: newchange
Gerrit-Change-Id: I81a13823610fce325711fbe7a7b9e268b6629cac
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>

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

Reply via email to