From c1f9b1f7b1b77776192048005dcc66dcf3df2bfb Mon Sep 17 00:00:00 2001 From: Pierre Schmitz Date: Sat, 27 Dec 2014 15:41:37 +0100 Subject: Update to MediaWiki 1.24.1 --- .../resourceloader/ResourceLoaderLESSFunctions.php | 67 ---------------------- 1 file changed, 67 deletions(-) delete mode 100644 includes/resourceloader/ResourceLoaderLESSFunctions.php (limited to 'includes/resourceloader/ResourceLoaderLESSFunctions.php') diff --git a/includes/resourceloader/ResourceLoaderLESSFunctions.php b/includes/resourceloader/ResourceLoaderLESSFunctions.php deleted file mode 100644 index c7570f64..00000000 --- a/includes/resourceloader/ResourceLoaderLESSFunctions.php +++ /dev/null @@ -1,67 +0,0 @@ -parser->sourceName, PATHINFO_DIRNAME ); - $url = $frame[2][0]; - $file = realpath( $base . '/' . $url ); - return $less->toBool( $file - && strpos( $url, '//' ) === false - && filesize( $file ) < CSSMin::EMBED_SIZE_LIMIT - && CSSMin::getMimeType( $file ) !== false ); - } - - /** - * Convert an image URI to a base64-encoded data URI. - * - * @par Example: - * @code - * .fancy-button { - * background-image: embed('../images/button-bg.png'); - * } - * @endcode - */ - public static function embed( $frame, $less ) { - $base = pathinfo( $less->parser->sourceName, PATHINFO_DIRNAME ); - $url = $frame[2][0]; - $file = realpath( $base . '/' . $url ); - - $data = CSSMin::encodeImageAsDataURI( $file ); - $less->addParsedFile( $file ); - return 'url(' . $data . ')'; - } -} -- cgit v1.2.3-54-g00ecf