| Index: trunk/phase3/RELEASE-NOTES-1.19 |
| — | — | @@ -68,6 +68,8 @@ |
| 69 | 69 | * (bug 11374) Improved diff readability for colorblind people. |
| 70 | 70 | * (bug 26486) ResourceLoader modules with paths to nonexistent files cause PHP |
| 71 | 71 | warnings/notices to be thrown. |
| | 72 | +* (bug 30335) Fix for HTMLForms using GET breaking when non-friendly URLs are |
| | 73 | + used |
| 72 | 74 | |
| 73 | 75 | === API changes in 1.19 === |
| 74 | 76 | * (bug 19838) siprop=interwikimap can now use the interwiki cache. |
| Index: trunk/phase3/includes/HTMLForm.php |
| — | — | @@ -430,12 +430,18 @@ |
| 431 | 431 | * @return String HTML. |
| 432 | 432 | */ |
| 433 | 433 | function getHiddenFields() { |
| | 434 | + global $wgUsePathInfo; |
| | 435 | + |
| 434 | 436 | $html = ''; |
| 435 | 437 | if( $this->getMethod() == 'post' ){ |
| 436 | 438 | $html .= Html::hidden( 'wpEditToken', $this->getUser()->editToken(), array( 'id' => 'wpEditToken' ) ) . "\n"; |
| 437 | 439 | $html .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . "\n"; |
| 438 | 440 | } |
| 439 | 441 | |
| | 442 | + if ( !$wgUsePathInfo && $this->getMethod() == 'get' ) { |
| | 443 | + $html .= Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . "\n"; |
| | 444 | + } |
| | 445 | + |
| 440 | 446 | foreach ( $this->mHiddenFields as $data ) { |
| 441 | 447 | list( $value, $attribs ) = $data; |
| 442 | 448 | $html .= Html::hidden( $attribs['name'], $value, $attribs ) . "\n"; |