Index: trunk/extensions/CongressLookup/CongressLookup.php |
— | — | @@ -46,7 +46,7 @@ |
47 | 47 | $wgCongressLookupMaxAge = 600; // 10 minutes client-side |
48 | 48 | |
49 | 49 | // Where to report errors |
50 | | -$wgCongressLookupErrorPage = '//meta.wikimedia.org/wiki/English_Wikipedia_SOPA_blackout/Congress_data'; |
| 50 | +$wgCongressLookupErrorPage = '/wiki/Special:CongressFail'; |
51 | 51 | |
52 | 52 | $dir = dirname( __FILE__ ) . '/'; |
53 | 53 | |
Index: trunk/extensions/CongressLookup/SpecialCongressLookup.php |
— | — | @@ -215,7 +215,7 @@ |
216 | 216 | * @return string HTML for the table |
217 | 217 | */ |
218 | 218 | private function getCongressTables() { |
219 | | - global $wgCongressLookupErrorPage; |
| 219 | + global $wgCongressLookupErrorPage, $wgRequest; |
220 | 220 | |
221 | 221 | $myRepresentatives = CongressLookupDB::getRepresentative( $this->zip ); |
222 | 222 | $mySenators = CongressLookupDB::getSenators( $this->zip ); |
— | — | @@ -310,8 +310,11 @@ |
311 | 311 | } |
312 | 312 | |
313 | 313 | $congressTable .= Html::openElement( 'p' ); |
314 | | - $congressTable .= Html::element( 'a', array ( 'href' => $wgCongressLookupErrorPage ), |
315 | | - wfMsg( 'congresslookup-report-errors' ) ); |
| 314 | + $congressTable .= Html::element( |
| 315 | + 'a', |
| 316 | + array ( 'href' => $wgCongressLookupErrorPage . '?zip=' . $wgRequest->getVal( 'zip' ) ), |
| 317 | + wfMsg( 'congresslookup-report-errors' ) |
| 318 | + ); |
316 | 319 | $congressTable .= Html::closeElement( 'p' ); |
317 | 320 | |
318 | 321 | return $congressTable; |