Fix function call casing
authorReedy <reedy@wikimedia.org>
Sat, 20 Feb 2016 20:20:37 +0000 (20:20 +0000)
committerUmherirrender <umherirrender_de.wp@web.de>
Mon, 22 Feb 2016 18:30:33 +0000 (18:30 +0000)
Change-Id: I20600c865b9f239ac281a1f8c5776ad4dbec4359

includes/api/ApiEditPage.php
includes/api/ApiLogin.php
includes/api/ApiMain.php
includes/api/ApiOpenSearch.php
includes/api/ApiQueryPrefixSearch.php

index 03260d7..f32bab0 100644 (file)
@@ -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 );
index 801475d..84b9f49 100644 (file)
@@ -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';
index ed5c1bc..c7c48b3 100644 (file)
@@ -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() );
                        }
                }
 
index 15aa983..7a7d8f5 100644 (file)
@@ -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 ),
                                ];
                        }
                }
index dcb8ada..d04796c 100644 (file)
@@ -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 ) {