r69605 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r69604‎ | r69605 | r69606 >
Date:12:07, 20 July 2010
Author:werdna
Status:deferred
Tags:
Comment:
Make the database into which CommunityHiring saves its data configurable.
Modified paths:
  • /trunk/extensions/CommunityHiring/CommunityHiring.php (modified) (history)
  • /trunk/extensions/CommunityHiring/SpecialCommunityHiring.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CommunityHiring/CommunityHiring.php
@@ -5,3 +5,5 @@
66 $wgAutoloadClasses['SpecialCommunityHiring'] = dirname(__FILE__) . "/SpecialCommunityHiring.php";
77
88 $wgExtensionMessagesFiles['CommunityHiring'] = dirname( __FILE__ ) . "/CommunityHiring.i18n.php";
 9+
 10+$wgCommunityHiringDatabase = false;
Index: trunk/extensions/CommunityHiring/SpecialCommunityHiring.php
@@ -200,9 +200,9 @@
201201 }
202202
203203 function submit( $info ) {
204 - global $wgOut;
 204+ global $wgOut, $wgCommunityHiringDatabase;
205205
206 - $dbw = wfGetDB( DB_MASTER );
 206+ $dbw = wfGetDB( DB_MASTER, array(), $wgCommunityHiringDatabase );
207207
208208 $dbw->insert( 'community_hiring_application',
209209 array( 'ch_data' => json_encode($info),

Follow-up revisions

RevisionCommit summaryAuthorDate
r69606Merge r69605werdna12:19, 20 July 2010

Status & tagging log