Index: trunk/extensions/CommunityHiring/CommunityHiring.php |
— | — | @@ -5,3 +5,5 @@ |
6 | 6 | $wgAutoloadClasses['SpecialCommunityHiring'] = dirname(__FILE__) . "/SpecialCommunityHiring.php"; |
7 | 7 | |
8 | 8 | $wgExtensionMessagesFiles['CommunityHiring'] = dirname( __FILE__ ) . "/CommunityHiring.i18n.php"; |
| 9 | + |
| 10 | +$wgCommunityHiringDatabase = false; |
Index: trunk/extensions/CommunityHiring/SpecialCommunityHiring.php |
— | — | @@ -200,9 +200,9 @@ |
201 | 201 | } |
202 | 202 | |
203 | 203 | function submit( $info ) { |
204 | | - global $wgOut; |
| 204 | + global $wgOut, $wgCommunityHiringDatabase; |
205 | 205 | |
206 | | - $dbw = wfGetDB( DB_MASTER ); |
| 206 | + $dbw = wfGetDB( DB_MASTER, array(), $wgCommunityHiringDatabase ); |
207 | 207 | |
208 | 208 | $dbw->insert( 'community_hiring_application', |
209 | 209 | array( 'ch_data' => json_encode($info), |