Index: trunk/phase3/includes/Pager.php |
— | — | @@ -415,8 +415,10 @@ |
416 | 416 | * @return Associative array |
417 | 417 | */ |
418 | 418 | function getDefaultQuery() { |
| 419 | + global $wgRequest; |
| 420 | + |
419 | 421 | if ( !isset( $this->mDefaultQuery ) ) { |
420 | | - $this->mDefaultQuery = $_GET; |
| 422 | + $this->mDefaultQuery = $wgRequest->getQueryValues(); |
421 | 423 | unset( $this->mDefaultQuery['title'] ); |
422 | 424 | unset( $this->mDefaultQuery['dir'] ); |
423 | 425 | unset( $this->mDefaultQuery['offset'] ); |
— | — | @@ -1025,14 +1027,16 @@ |
1026 | 1028 | |
1027 | 1029 | /** |
1028 | 1030 | * Get <input type="hidden"> elements for use in a method="get" form. |
1029 | | - * Resubmits all defined elements of the $_GET array, except for a |
| 1031 | + * Resubmits all defined elements of the query string, except for a |
1030 | 1032 | * blacklist, passed in the $blacklist parameter. |
1031 | 1033 | * |
1032 | 1034 | * @return String: HTML fragment |
1033 | 1035 | */ |
1034 | 1036 | function getHiddenFields( $blacklist = array() ) { |
| 1037 | + global $wgRequest; |
| 1038 | + |
1035 | 1039 | $blacklist = (array)$blacklist; |
1036 | | - $query = $_GET; |
| 1040 | + $query = $wgRequest->getQueryValues(); |
1037 | 1041 | foreach ( $blacklist as $name ) { |
1038 | 1042 | unset( $query[$name] ); |
1039 | 1043 | } |
Index: trunk/phase3/includes/SpecialPageFactory.php |
— | — | @@ -435,7 +435,7 @@ |
436 | 436 | // generate self-links without being aware that their default name has |
437 | 437 | // changed. |
438 | 438 | if ( $name != $page->getLocalName() && !$context->request->wasPosted() ) { |
439 | | - $query = $_GET; |
| 439 | + $query = $context->request->getQueryValues(); |
440 | 440 | unset( $query['title'] ); |
441 | 441 | $query = wfArrayToCGI( $query ); |
442 | 442 | $title = $page->getTitle( $par ); |
Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -185,8 +185,10 @@ |
186 | 186 | } |
187 | 187 | |
188 | 188 | private function getDefaultQuery() { |
| 189 | + global $wgRequest; |
| 190 | + |
189 | 191 | if ( !isset( $this->mDefaultQuery ) ) { |
190 | | - $this->mDefaultQuery = $_GET; |
| 192 | + $this->mDefaultQuery = $wgRequest->getQueryValues(); |
191 | 193 | unset( $this->mDefaultQuery['title'] ); |
192 | 194 | unset( $this->mDefaultQuery['dir'] ); |
193 | 195 | unset( $this->mDefaultQuery['offset'] ); |