ResourceLoaderLESSFunctions: Quote CSS data: URIs if needed
authorChristian Aistleitner <christian@quelltextlich.at>
Mon, 9 Jun 2014 10:48:24 +0000 (12:48 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Mon, 9 Jun 2014 15:51:16 +0000 (17:51 +0200)
Change-Id: I121cf6b410b17f2b8b880cb3b5cb786f5eeb23b6

includes/resourceloader/ResourceLoaderLESSFunctions.php

index e016a33..eb1461f 100644 (file)
@@ -62,6 +62,6 @@ class ResourceLoaderLESSFunctions {
 
                $data = CSSMin::encodeImageAsDataURI( $file );
                $less->addParsedFile( $file );
-               return 'url(' . $data . ')';
+               return CSSMin::buildUrlValue( $data );
        }
 }