Index: trunk/extensions/CodeReview/ui/CodeRevisionListView.php |
— | — | @@ -64,13 +64,12 @@ |
65 | 65 | return; |
66 | 66 | } |
67 | 67 | |
68 | | - $pathForm = $this->showForm(); |
69 | | - |
70 | 68 | // Get the total count across all pages |
71 | 69 | $dbr = wfGetDB( DB_SLAVE ); |
72 | 70 | $revCount = $this->getRevCount( $dbr ); |
73 | 71 | |
74 | 72 | $pager = $this->getPager(); |
| 73 | + $pathForm = $this->showForm( $pager->getHiddenFields( array( 'path' ) ) ); |
75 | 74 | |
76 | 75 | // Build batch change interface as needed |
77 | 76 | $this->batchForm = $wgUser->isAllowed( 'codereview-set-status' ) || |
— | — | @@ -182,15 +181,12 @@ |
183 | 182 | } |
184 | 183 | |
185 | 184 | /** |
| 185 | + * @param $hidden string |
| 186 | + * |
186 | 187 | * @return string |
187 | 188 | */ |
188 | | - function showForm() { |
| 189 | + function showForm( $hidden = '' ) { |
189 | 190 | global $wgScript; |
190 | | - if ( $this->mAuthor ) { |
191 | | - $special = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/author/' . $this->mAuthor ); |
192 | | - } else { |
193 | | - $special = SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() . '/path' ); |
194 | | - } |
195 | 191 | |
196 | 192 | $ret = Xml::openElement( 'form', array( 'action' => $wgScript, 'method' => 'get' ) ) . |
197 | 193 | "<fieldset><legend>" . wfMsgHtml( 'code-pathsearch-legend' ) . "</legend>" . |
— | — | @@ -204,11 +200,11 @@ |
205 | 201 | Xml::label( wfMsg( 'code-pathsearch-filter' ), 'revFilter' ) . ' <strong>' . |
206 | 202 | Xml::span( $this->mAppliedFilter, '' ) . '</strong> ' . |
207 | 203 | Xml::submitButton( wfMsg( 'code-revfilter-clear' ) ) . |
208 | | - '</td>' . |
209 | | - Html::hidden( 'title', SpecialPage::getTitleFor( 'Code', $this->mRepo->getName() ) ); |
210 | | - } else { |
211 | | - $ret .= Html::hidden( 'title', $special->getPrefixedDBKey() ) ; |
| 204 | + '</td>'; |
212 | 205 | } |
| 206 | + |
| 207 | + $ret .= $hidden; |
| 208 | + |
213 | 209 | $ret .= "</tr></table></fieldset></form>" ; |
214 | 210 | |
215 | 211 | return $ret; |