r69225 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69224‎ | r69225 | r69226 >
Date:07:36, 10 July 2010
Author:nikerabbit
Status:ok
Tags:
Comment:
Tweak comparison in r69171
Modified paths:
  • /trunk/phase3/includes/LinkBatch.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/LinkBatch.php
@@ -148,7 +148,10 @@
149149 $sql = "SELECT page_id, page_namespace, page_title, page_len, page_is_redirect, page_latest FROM $page WHERE $set";
150150
151151 // Do query
152 - $caller = $this->caller ? __METHOD__ . " (for {$this->caller})" : __METHOD__;
 152+ $caller = __METHOD__;
 153+ if ( strval( $this->caller ) !== '' ) {
 154+ $caller .= " (for {$this->caller})";
 155+ }
153156 $res = $dbr->query( $sql, $caller );
154157 wfProfileOut( __METHOD__ );
155158 return $res;

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r69171Little debugging help for LinkBatchnikerabbit08:11, 8 July 2010

Status & tagging log