Fix capitalization of HTML Class

* Replace HTML->Html

Introduced in Idd22057a88312bf1a1cb5546d0a6edca5678d80d

Change-Id: If44743507d6897fa7600a16fc2002443cc3a556e
This commit is contained in:
Moritz Schubotz (physikerwelt) 2019-11-15 23:03:48 +01:00
parent a406f9eae3
commit 848168c3a1
No known key found for this signature in database
GPG key ID: 73D26C61BAB32E94

View file

@ -180,7 +180,7 @@ class SpecialMathWikibase extends SpecialPage {
wfMessage( 'math-wikibase-formula' )->inContentLanguage(), wfMessage( 'math-wikibase-formula' )->inContentLanguage(),
$math $math
); );
$output->addHTML( HTML::rawElement( "p", [], $formulaInfo->inContentLanguage() ) ); $output->addHTML( Html::rawElement( "p", [], $formulaInfo->inContentLanguage() ) );
} }
$labelName = wfMessage( $labelName = wfMessage(
@ -188,7 +188,7 @@ class SpecialMathWikibase extends SpecialPage {
wfMessage( 'math-wikibase-formula-name' )->inContentLanguage(), wfMessage( 'math-wikibase-formula-name' )->inContentLanguage(),
$info->getLabel() $info->getLabel()
)->inContentLanguage(); )->inContentLanguage();
$output->addHTML( HTML::rawElement( "p", [], $labelName ) ); $output->addHTML( Html::rawElement( "p", [], $labelName ) );
if ( count( $matches ) > 2 ) { if ( count( $matches ) > 2 ) {
$labelType = wfMessage( $labelType = wfMessage(
@ -203,15 +203,15 @@ class SpecialMathWikibase extends SpecialPage {
$matches[2] $matches[2]
)->inContentLanguage(); )->inContentLanguage();
$output->addHTML( HTML::rawElement( "p", [], $labelType ) ); $output->addHTML( Html::rawElement( "p", [], $labelType ) );
$output->addHTML( HTML::rawElement( "p", [], $labelDesc ) ); $output->addHTML( Html::rawElement( "p", [], $labelDesc ) );
} else { } else {
$labelDesc = wfMessage( $labelDesc = wfMessage(
'math-wikibase-formula-header-format', 'math-wikibase-formula-header-format',
wfMessage( 'math-wikibase-formula-description' )->inContentLanguage(), wfMessage( 'math-wikibase-formula-description' )->inContentLanguage(),
$info->getDescription() $info->getDescription()
)->inContentLanguage(); )->inContentLanguage();
$output->addHTML( HTML::rawElement( "p", [], $labelDesc ) ); $output->addHTML( Html::rawElement( "p", [], $labelDesc ) );
} }
// add parts of formula // add parts of formula
@ -231,8 +231,8 @@ class SpecialMathWikibase extends SpecialPage {
$output->addHTML( self::createHTMLHeader( $wikibaseHeader ) ); $output->addHTML( self::createHTMLHeader( $wikibaseHeader ) );
$url = MathWikibaseConnector::buildURL( $qid ); $url = MathWikibaseConnector::buildURL( $qid );
$link = HTML::linkButton( $url, [ "href" => $url ] ); $link = Html::linkButton( $url, [ "href" => $url ] );
$output->addHTML( HTML::rawElement( "p", [], $link ) ); $output->addHTML( Html::rawElement( "p", [], $link ) );
} }
/** /**
@ -241,9 +241,9 @@ class SpecialMathWikibase extends SpecialPage {
* @return string * @return string
*/ */
private static function createHTMLHeader( $header ) { private static function createHTMLHeader( $header ) {
$headerOut = HTML::openElement( "h2" ); $headerOut = Html::openElement( "h2" );
$headerOut .= HTML::rawElement( "span", [ "class" => "mw-headline" ], $header ); $headerOut .= Html::rawElement( "span", [ "class" => "mw-headline" ], $header );
$headerOut .= HTML::closeElement( "h2" ); $headerOut .= Html::closeElement( "h2" );
return $headerOut; return $headerOut;
} }