Index: trunk/phase3/includes/CategoryPage.php |
— | — | @@ -55,11 +55,14 @@ |
56 | 56 | |
57 | 57 | $from = $until = array(); |
58 | 58 | foreach ( array( 'page', 'subcat', 'file' ) as $type ) { |
59 | | - $from[$type] = $wgRequest->getVal( "{$type}from" ); |
60 | | - $until[$type] = $wgRequest->getVal( "{$type}until" ); |
| 59 | + # Use $_GET instead of $wgRequest, because the latter helpfully |
| 60 | + # normalizes Unicode, which removes nulls. TODO: do something |
| 61 | + # smarter than passing nulls in URLs. :/ |
| 62 | + $from[$type] = isset( $_GET["{$type}from"] ) ? $_GET["{$type}from"] : null; |
| 63 | + $until[$type] = isset( $_GET["{$type}until"] ) ? $_GET["{$type}until"] : null; |
61 | 64 | } |
62 | 65 | |
63 | | - $viewer = new CategoryViewer( $this->mTitle, $from, $until, $wgRequest->getValues() ); |
| 66 | + $viewer = new CategoryViewer( $this->mTitle, $from, $until, $_GET ); |
64 | 67 | $wgOut->addHTML( $viewer->getHTML() ); |
65 | 68 | } |
66 | 69 | } |