Yaron Koren has submitted this change and it was merged.
Change subject: Switched a DB variable to read-only
......................................................................
Switched a DB variable to read-only
Change-Id: I167a56cf288f2cb91a669b56b30071c449d71e9e
---
M specials/CargoDeleteTable.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Yaron Koren: Checked; Looks good to me, approved
jenkins-bot: Verified
diff --git a/specials/CargoDeleteTable.php b/specials/CargoDeleteTable.php
index e538d80..7a2c65f 100644
--- a/specials/CargoDeleteTable.php
+++ b/specials/CargoDeleteTable.php
@@ -60,8 +60,8 @@
}
// Make sure that this table exists.
- $dbw = wfGetDB( DB_MASTER );
- $res = $dbw->select( 'cargo_tables', array( 'main_table',
'field_tables' ),
+ $dbr = wfGetDB( DB_SLAVE );
+ $res = $dbr->select( 'cargo_tables', array( 'main_table',
'field_tables' ),
array( 'main_table' => $subpage ) );
if ( $res->numRows() == 0 ) {
$out->addHTML( CargoUtils::formatError( "Error: no
table found named \"$subpage\"." ) );
--
To view, visit https://gerrit.wikimedia.org/r/278738
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I167a56cf288f2cb91a669b56b30071c449d71e9e
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Cargo
Gerrit-Branch: master
Gerrit-Owner: Yaron Koren <[email protected]>
Gerrit-Reviewer: Yaron Koren <[email protected]>
Gerrit-Reviewer: jenkins-bot <>
_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits