Umherirrender has uploaded a new change for review.
https://gerrit.wikimedia.org/r/270505
Change subject: Fix case of Html class
......................................................................
Fix case of Html class
Gives fatal when using $wgAutoloadAttemptLowercase = false
Change-Id: I6bebd5dcb3341969d321d8e7dcefb91281dbec4e
---
M CSS.php
1 file changed, 4 insertions(+), 4 deletions(-)
git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CSS
refs/changes/05/270505/1
diff --git a/CSS.php b/CSS.php
index 1aea7d7..b8a4fd0 100644
--- a/CSS.php
+++ b/CSS.php
@@ -65,7 +65,7 @@
# Article actually in the db
$params = "action=raw&ctype=text/css&$rawProtection";
$url = $title->getLocalURL( $params );
- $headItem .= HTML::linkedStyle( $url );
+ $headItem .= Html::linkedStyle( $url );
} elseif ( $css[0] == '/' ) {
# Regular file
$base = $wgCSSPath === false ? $wgStylePath : $wgCSSPath;
@@ -73,7 +73,7 @@
# Verify the expanded URL is still using the base URL
if ( strpos( wfExpandUrl( $url ), wfExpandUrl( $base ) ) === 0
) {
- $headItem .= HTML::linkedStyle( $url );
+ $headItem .= Html::linkedStyle( $url );
} else {
$headItem .= '<!-- Invalid/malicious path -->';
}
@@ -94,7 +94,7 @@
# Encode data URI and append link tag
$dataPrefix = 'data:text/css;charset=UTF-8;base64,';
$url = $dataPrefix . base64_encode( $css );
- $headItem .= HTML::linkedStyle( $url );
+ $headItem .= Html::linkedStyle( $url );
# Calculate URI prefix to match link tag
$hrefPrefix = $dataPrefix . base64_encode( '#' . $canaryId );
@@ -102,7 +102,7 @@
# Add JS to verify the link tag loaded and fallback if needed
$parser->getOutput()->addModules( 'ext.CSS' );
- $headItem .= HTML::inlineScript( <<<INLINESCRIPT
+ $headItem .= Html::inlineScript( <<<INLINESCRIPT
jQuery( function( $ ) {
$( 'link[href^="$hrefPrefix"]' )
.cssExtensionDataURIFallback( '$canaryId', '$color' );
--
To view, visit https://gerrit.wikimedia.org/r/270505
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: newchange
Gerrit-Change-Id: I6bebd5dcb3341969d321d8e7dcefb91281dbec4e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CSS
Gerrit-Branch: master
Gerrit-Owner: Umherirrender <[email protected]>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits