r88415 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r88414‎ | r88415 | r88416 >
Date:17:31, 19 May 2011
Author:ialex
Status:ok
Tags:
Comment:
Correct case in function call: wfGetDb() -> wfGetDB()
Modified paths:
  • /trunk/phase3/includes/ExternalUser.php (modified) (history)
  • /trunk/phase3/includes/specials/SpecialWithoutinterwiki.php (modified) (history)
  • /trunk/phase3/maintenance/runBatchedQuery.php (modified) (history)

Diff [purge]

Index: trunk/phase3/maintenance/runBatchedQuery.php
@@ -38,7 +38,7 @@
3939 $query = $this->getArg();
4040 $wait = $this->getOption( 'wait', 5 );
4141 $n = 1;
42 - $dbw = wfGetDb( DB_MASTER );
 42+ $dbw = wfGetDB( DB_MASTER );
4343 do {
4444 $this->output( "Batch $n: " );
4545 $n++;
Index: trunk/phase3/includes/ExternalUser.php
@@ -293,7 +293,7 @@
294294 * @return Mixed User if the account is linked, Null otherwise.
295295 */
296296 public final function getLocalUser(){
297 - $dbr = wfGetDb( DB_SLAVE );
 297+ $dbr = wfGetDB( DB_SLAVE );
298298 $row = $dbr->selectRow(
299299 'external_user',
300300 '*',
Index: trunk/phase3/includes/specials/SpecialWithoutinterwiki.php
@@ -90,7 +90,7 @@
9191 'LEFT JOIN', 'll_from = page_id' ) )
9292 );
9393 if ( $this->prefix ) {
94 - $dbr = wfGetDb( DB_SLAVE );
 94+ $dbr = wfGetDB( DB_SLAVE );
9595 $query['conds'][] = 'page_title ' . $dbr->buildLike( $this->prefix, $dbr->anyString() );
9696 }
9797 return $query;

Status & tagging log