Bmansurov has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/370221 )

Change subject: Embed print wordmark
......................................................................

Embed print wordmark

Make sure the print wordmark is readily available for printing.
Without embedding, browsers wouldn't render the wordmark at first,
but would do so after the logo has been downloaded in subsequent
requests to print.

Bug: T169826
Change-Id: I788bcecadf26e4e5558b5b37e6fb1b2e9378277e
---
M ResourceLoaderLessModule.php
1 file changed, 2 insertions(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/skins/Vector 
refs/changes/21/370221/1

diff --git a/ResourceLoaderLessModule.php b/ResourceLoaderLessModule.php
index ca980fd..a901601 100644
--- a/ResourceLoaderLessModule.php
+++ b/ResourceLoaderLessModule.php
@@ -44,7 +44,8 @@
                $printLogo = $config->get( 'VectorPrintLogo' );
                if ( $printLogo ) {
                        $lessVars[ 'printLogo' ] = true;
-                       $lessVars[ 'printLogoUrl' ] = CSSMin::buildUrlValue( 
$printLogo['url'] );
+                       $lessVars[ 'printLogoUrl' ] = CSSMin::buildUrlValue(
+                               CSSMin::encodeImageAsDataURI( $printLogo['url'] 
) );
                        $lessVars[ 'printLogoWidth' ] = intval( 
$printLogo['width'] );
                        $lessVars[ 'printLogoHeight' ] = intval( 
$printLogo['height'] );
                } else {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I788bcecadf26e4e5558b5b37e6fb1b2e9378277e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/skins/Vector
Gerrit-Branch: master
Gerrit-Owner: Bmansurov <[email protected]>

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

Reply via email to