Correct case in function call: wfGetDb() -> wfGetDB()
authorAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 19 May 2011 17:31:32 +0000 (17:31 +0000)
committerAlexandre Emsenhuber <ialex@users.mediawiki.org>
Thu, 19 May 2011 17:31:32 +0000 (17:31 +0000)
includes/ExternalUser.php
includes/specials/SpecialWithoutinterwiki.php
maintenance/runBatchedQuery.php

index d1eff91..88dfc6e 100644 (file)
@@ -293,7 +293,7 @@ abstract class ExternalUser {
         * @return Mixed User if the account is linked, Null otherwise.
         */
        public final function getLocalUser(){
-               $dbr = wfGetDb( DB_SLAVE );
+               $dbr = wfGetDB( DB_SLAVE );
                $row = $dbr->selectRow(
                        'external_user',
                        '*',
index ffad92f..9d91b83 100644 (file)
@@ -90,7 +90,7 @@ class WithoutInterwikiPage extends PageQueryPage {
                                        'LEFT JOIN', 'll_from = page_id' ) )
                );
                if ( $this->prefix ) {
-                       $dbr = wfGetDb( DB_SLAVE );
+                       $dbr = wfGetDB( DB_SLAVE );
                        $query['conds'][] = 'page_title ' . $dbr->buildLike( $this->prefix, $dbr->anyString() );
                }
                return $query;
index 8d1b53e..9a6b638 100644 (file)
@@ -38,7 +38,7 @@ class BatchedQueryRunner extends Maintenance {
                $query = $this->getArg();
                $wait = $this->getOption( 'wait', 5 );
                $n = 1;
-               $dbw = wfGetDb( DB_MASTER );
+               $dbw = wfGetDB( DB_MASTER );
                do {
                        $this->output( "Batch $n: " );
                        $n++;