From 2b51bd1847cddc03fb05b69d353d0f5f9be381dc Mon Sep 17 00:00:00 2001 From: Max Semenik Date: Mon, 26 Sep 2016 15:32:54 -0700 Subject: [PATCH] Fix function name case Change-Id: Ibd4f682d2ed8500a50d85aae38f17281646f7c2d --- includes/EditPage.php | 2 +- includes/MovePage.php | 2 +- includes/api/ApiQuerySearch.php | 2 +- .../auth/TemporaryPasswordPrimaryAuthenticationProvider.php | 2 +- includes/exception/MWExceptionRenderer.php | 2 +- includes/libs/virtualrest/VirtualRESTServiceClient.php | 2 +- includes/logging/LogEventsList.php | 4 ++-- includes/specials/SpecialPreferences.php | 2 +- includes/specials/SpecialRandomInCategory.php | 2 +- includes/specials/SpecialUserrights.php | 2 +- includes/tidy/Balancer.php | 2 +- 11 files changed, 12 insertions(+), 12 deletions(-) diff --git a/includes/EditPage.php b/includes/EditPage.php index 406673dee2..7f0164371d 100644 --- a/includes/EditPage.php +++ b/includes/EditPage.php @@ -4263,7 +4263,7 @@ HTML protected function safeUnicodeOutput( $text ) { return $this->checkUnicodeCompliantBrowser() ? $text - : $this->makesafe( $text ); + : $this->makeSafe( $text ); } /** diff --git a/includes/MovePage.php b/includes/MovePage.php index d17f23422d..5f1dd3fdf6 100644 --- a/includes/MovePage.php +++ b/includes/MovePage.php @@ -446,7 +446,7 @@ class MovePage { $status = $newpage->doDeleteArticleReal( $overwriteMessage, /* $suppress */ false, - $nt->getArticleId(), + $nt->getArticleID(), /* $commit */ false, $errs, $user diff --git a/includes/api/ApiQuerySearch.php b/includes/api/ApiQuerySearch.php index f46b5d253b..606dee0c6d 100644 --- a/includes/api/ApiQuerySearch.php +++ b/includes/api/ApiQuerySearch.php @@ -235,7 +235,7 @@ class ApiQuerySearch extends ApiQueryGeneratorBase { $vals = [ 'namespace' => $result->getInterwikiNamespaceText(), 'title' => $title->getText(), - 'url' => $title->getFullUrl(), + 'url' => $title->getFullURL(), ]; // Add item to results and see whether it fits diff --git a/includes/auth/TemporaryPasswordPrimaryAuthenticationProvider.php b/includes/auth/TemporaryPasswordPrimaryAuthenticationProvider.php index f16423dd2f..9962fa3902 100644 --- a/includes/auth/TemporaryPasswordPrimaryAuthenticationProvider.php +++ b/includes/auth/TemporaryPasswordPrimaryAuthenticationProvider.php @@ -140,7 +140,7 @@ class TemporaryPasswordPrimaryAuthenticationProvider } $status = $this->checkPasswordValidity( $username, $req->password ); - if ( !$status->isOk() ) { + if ( !$status->isOK() ) { // Fatal, can't log in return AuthenticationResponse::newFail( $status->getMessage() ); } diff --git a/includes/exception/MWExceptionRenderer.php b/includes/exception/MWExceptionRenderer.php index e242da348b..aba131d1ee 100644 --- a/includes/exception/MWExceptionRenderer.php +++ b/includes/exception/MWExceptionRenderer.php @@ -172,7 +172,7 @@ class MWExceptionRenderer { } else { // Show any custom GUI message before the details if ( $e instanceof MessageSpecifier ) { - $wgOut->addHtml( Message::newFromSpecifier( $e )->escaped() ); + $wgOut->addHTML( Message::newFromSpecifier( $e )->escaped() ); } $wgOut->addHTML( self::getHTML( $e ) ); } diff --git a/includes/libs/virtualrest/VirtualRESTServiceClient.php b/includes/libs/virtualrest/VirtualRESTServiceClient.php index 0864e5c964..1b7545a892 100644 --- a/includes/libs/virtualrest/VirtualRESTServiceClient.php +++ b/includes/libs/virtualrest/VirtualRESTServiceClient.php @@ -304,7 +304,7 @@ class VirtualRESTServiceClient { */ private function getInstance( $prefix ) { if ( !isset( $this->instances[$prefix] ) ) { - throw new RunTimeException( "No service registered at prefix '{$prefix}'." ); + throw new RuntimeException( "No service registered at prefix '{$prefix}'." ); } if ( !( $this->instances[$prefix] instanceof VirtualRESTService ) ) { diff --git a/includes/logging/LogEventsList.php b/includes/logging/LogEventsList.php index f29c9e472b..0cf584b0a2 100644 --- a/includes/logging/LogEventsList.php +++ b/includes/logging/LogEventsList.php @@ -310,7 +310,7 @@ class LogEventsList extends ContextSource { return ''; } $html = ''; - $html .= xml::label( wfMessage( 'log-action-filter-' . $types[0] )->text(), + $html .= Xml::label( wfMessage( 'log-action-filter-' . $types[0] )->text(), 'action-filter-' .$types[0] ) . "\n"; $select = new XmlSelect( 'subtype' ); $select->addOption( wfMessage( 'log-action-filter-all' )->text(), '' ); @@ -319,7 +319,7 @@ class LogEventsList extends ContextSource { $select->addOption( wfMessage( $msgKey )->text(), $value ); } $select->setDefault( $action ); - $html .= $select->getHtml(); + $html .= $select->getHTML(); return $html; } diff --git a/includes/specials/SpecialPreferences.php b/includes/specials/SpecialPreferences.php index 3697e5da6b..eee5b641a3 100644 --- a/includes/specials/SpecialPreferences.php +++ b/includes/specials/SpecialPreferences.php @@ -59,7 +59,7 @@ class SpecialPreferences extends SpecialPage { $session->remove( 'specialPreferencesSaveSuccess' ); $out->addModuleStyles( 'mediawiki.notification.convertmessagebox.styles' ); - $out->addHtml( + $out->addHTML( Html::rawElement( 'div', [ diff --git a/includes/specials/SpecialRandomInCategory.php b/includes/specials/SpecialRandomInCategory.php index fc924a4d58..adf12d40a6 100644 --- a/includes/specials/SpecialRandomInCategory.php +++ b/includes/specials/SpecialRandomInCategory.php @@ -272,7 +272,7 @@ class SpecialRandomInCategory extends FormSpecialPage { 'high' => 'MAX( cl_timestamp )' ], [ - 'cl_to' => $this->category->getDBKey(), + 'cl_to' => $this->category->getDBkey(), ], __METHOD__, [ diff --git a/includes/specials/SpecialUserrights.php b/includes/specials/SpecialUserrights.php index 8a06abf594..433dcab593 100644 --- a/includes/specials/SpecialUserrights.php +++ b/includes/specials/SpecialUserrights.php @@ -156,7 +156,7 @@ class UserrightsPage extends SpecialPage { if ( $request->getCheck( 'success' ) && $this->mFetchedUser !== null ) { $out->addModules( [ 'mediawiki.special.userrights' ] ); $out->addModuleStyles( 'mediawiki.notification.convertmessagebox.styles' ); - $out->addHtml( + $out->addHTML( Html::rawElement( 'div', [ diff --git a/includes/tidy/Balancer.php b/includes/tidy/Balancer.php index 666f3f9456..069b460fd8 100644 --- a/includes/tidy/Balancer.php +++ b/includes/tidy/Balancer.php @@ -729,7 +729,7 @@ class BalanceStack implements IteratorAggregate { $this->config['tidyCompat'] && !$isComment && $this->currentNode->isA( BalanceSets::$tidyPWrapSet ) ) { - $this->insertHTMLELement( 'mw:p-wrap', [] ); + $this->insertHTMLElement( 'mw:p-wrap', [] ); return $this->insertText( $value ); } else { $this->currentNode->appendChild( $value ); -- 2.20.1