From: Reedy Date: Sat, 20 Feb 2016 20:20:37 +0000 (+0000) Subject: Fix function call casing X-Git-Tag: 1.31.0-rc.0~7875 X-Git-Url: http://git.cyclocoop.org/?a=commitdiff_plain;h=95b2be3bd3d95c5d0598e664a797cad8f216ba37;p=lhc%2Fweb%2Fwiklou.git Fix function call casing Change-Id: I20600c865b9f239ac281a1f8c5776ad4dbec4359 --- diff --git a/includes/api/ApiEditPage.php b/includes/api/ApiEditPage.php index 03260d7cc6..f32bab0fcd 100644 --- a/includes/api/ApiEditPage.php +++ b/includes/api/ApiEditPage.php @@ -364,7 +364,7 @@ class ApiEditPage extends ApiBase { // Apply change tags if ( count( $params['tags'] ) ) { $tagStatus = ChangeTags::canAddTagsAccompanyingChange( $params['tags'], $user ); - if ( $tagStatus->isOk() ) { + if ( $tagStatus->isOK() ) { $requestArray['wpChangeTags'] = implode( ',', $params['tags'] ); } else { $this->dieStatus( $tagStatus ); diff --git a/includes/api/ApiLogin.php b/includes/api/ApiLogin.php index 801475d1a0..84b9f499ad 100644 --- a/includes/api/ApiLogin.php +++ b/includes/api/ApiLogin.php @@ -97,7 +97,7 @@ class ApiLogin extends ApiBase { $status = BotPassword::login( $params['name'], $params['password'], $this->getRequest() ); - if ( $status->isOk() ) { + if ( $status->isOK() ) { $session = $status->getValue(); $authRes = LoginForm::SUCCESS; $loginType = 'BotPassword'; diff --git a/includes/api/ApiMain.php b/includes/api/ApiMain.php index ed5c1bc22a..c7c48b3a94 100644 --- a/includes/api/ApiMain.php +++ b/includes/api/ApiMain.php @@ -919,7 +919,7 @@ class ApiMain extends ApiBase { if ( $this->getConfig()->get( 'ShowHostnames' ) ) { $servedby = $this->getParameter( 'servedby' ); if ( $servedby ) { - $result->addValue( null, 'servedby', wfHostName() ); + $result->addValue( null, 'servedby', wfHostname() ); } } diff --git a/includes/api/ApiOpenSearch.php b/includes/api/ApiOpenSearch.php index 15aa9839af..7a7d8f50db 100644 --- a/includes/api/ApiOpenSearch.php +++ b/includes/api/ApiOpenSearch.php @@ -190,7 +190,7 @@ class ApiOpenSearch extends ApiBase { } } else { foreach ( $titles as $title ) { - $resultId = $title->getArticleId(); + $resultId = $title->getArticleID(); if ( $resultId === 0 ) { $resultId = $nextSpecialPageId; $nextSpecialPageId -= 1; @@ -201,7 +201,7 @@ class ApiOpenSearch extends ApiBase { 'extract' => false, 'extract trimmed' => false, 'image' => false, - 'url' => wfExpandUrl( $title->getFullUrl(), PROTO_CURRENT ), + 'url' => wfExpandUrl( $title->getFullURL(), PROTO_CURRENT ), ]; } } diff --git a/includes/api/ApiQueryPrefixSearch.php b/includes/api/ApiQueryPrefixSearch.php index dcb8adae3a..d04796c91d 100644 --- a/includes/api/ApiQueryPrefixSearch.php +++ b/includes/api/ApiQueryPrefixSearch.php @@ -80,7 +80,7 @@ class ApiQueryPrefixSearch extends ApiQueryGeneratorBase { if ( $title->isSpecialPage() ) { $vals['special'] = true; } else { - $vals['pageid'] = intval( $title->getArticleId() ); + $vals['pageid'] = intval( $title->getArticleID() ); } $fit = $result->addValue( [ 'query', $this->getModuleName() ], null, $vals ); if ( !$fit ) {