mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-14 18:15:44 +00:00
Do not use false for condition on IDatabase::selectField
It results in a log entry in Database::selectSQLText Change-Id: I95313cb375851d53353e9629c43f730d1c96c85f
This commit is contained in:
parent
422b1f743d
commit
beae7d6b19
|
@ -318,7 +318,7 @@ class SpecialInterwiki extends SpecialPage {
|
|||
if ( $wgInterwikiCentralDB !== null && $wgInterwikiCentralDB !== wfWikiID() ) {
|
||||
// Fetch list from global table
|
||||
$dbrCentralDB = wfGetDB( DB_REPLICA, [], $wgInterwikiCentralDB );
|
||||
$res = $dbrCentralDB->select( 'interwiki', '*', false, __METHOD__ );
|
||||
$res = $dbrCentralDB->select( 'interwiki', '*', [], __METHOD__ );
|
||||
$retval = [];
|
||||
foreach ( $res as $row ) {
|
||||
$row = (array)$row;
|
||||
|
@ -337,7 +337,7 @@ class SpecialInterwiki extends SpecialPage {
|
|||
if ( $usingGlobalLanguages ) {
|
||||
// Fetch list from global table
|
||||
$dbrCentralLangDB = wfGetDB( DB_REPLICA, [], $wgInterwikiCentralInterlanguageDB );
|
||||
$res = $dbrCentralLangDB->select( 'interwiki', '*', false, __METHOD__ );
|
||||
$res = $dbrCentralLangDB->select( 'interwiki', '*', [], __METHOD__ );
|
||||
$retval2 = [];
|
||||
foreach ( $res as $row ) {
|
||||
$row = (array)$row;
|
||||
|
|
Loading…
Reference in a new issue