Index: trunk/extensions/CongressLookup/CongressLookup.php |
— | — | @@ -45,9 +45,10 @@ |
46 | 46 | $wgCongressLookupSharedMaxAge = 1200; // 20 minutes server-side |
47 | 47 | $wgCongressLookupMaxAge = 600; // 10 minutes client-side |
48 | 48 | |
49 | | -// Where to report errors |
50 | | -$wgCongressLookupErrorPage = '/wiki/Special:CongressFail'; |
| 49 | +// Where to report errors (special page) |
| 50 | +$wgCongressLookupErrorPage = 'CongressFail'; |
51 | 51 | |
| 52 | + |
52 | 53 | $dir = dirname( __FILE__ ) . '/'; |
53 | 54 | |
54 | 55 | //API |
Index: trunk/extensions/CongressLookup/SpecialCongressLookup.php |
— | — | @@ -309,10 +309,13 @@ |
310 | 310 | $congressTable .= Html::element( 'p', array(), wfMsg( 'congresslookup-no-senators' ) ); |
311 | 311 | } |
312 | 312 | |
| 313 | + $errorPage = SpecialPage::getTitleFor( $wgCongressLookupErrorPage ); |
| 314 | + $errorUrl = $errorPage->getLocalURL( array( 'zip' => $wgRequest->getVal( 'zip' ) ) ); |
| 315 | + |
313 | 316 | $congressTable .= Html::openElement( 'p' ); |
314 | 317 | $congressTable .= Html::element( |
315 | 318 | 'a', |
316 | | - array ( 'href' => $wgCongressLookupErrorPage . '?zip=' . $wgRequest->getVal( 'zip' ) ), |
| 319 | + array ( 'href' => $errorUrl ), |
317 | 320 | wfMsg( 'congresslookup-report-errors' ) |
318 | 321 | ); |
319 | 322 | $congressTable .= Html::closeElement( 'p' ); |