Index: trunk/phase3/includes/specials/SpecialCategories.php |
— | — | @@ -35,7 +35,7 @@ |
36 | 36 | $this->outputHeader(); |
37 | 37 | $this->getOutput()->allowClickjacking(); |
38 | 38 | |
39 | | - $from = $this->getRequest()->getText( 'from', $par ); |
| 39 | + $from = $this->getRequest()->getText( 'wpFrom', $par ); |
40 | 40 | |
41 | 41 | $cap = new CategoryPager( $this->getContext(), $from ); |
42 | 42 | $cap->doQuery(); |
— | — | @@ -43,7 +43,7 @@ |
44 | 44 | $this->getOutput()->addHTML( |
45 | 45 | Html::openElement( 'div', array( 'class' => 'mw-spcontent' ) ) . |
46 | 46 | $this->msg( 'categoriespagetext', $cap->getNumRows() )->parseAsBlock() . |
47 | | - $cap->getStartForm( $from ) . |
| 47 | + $cap->buildHTMLForm() . |
48 | 48 | $cap->getNavigationBar() . |
49 | 49 | '<ul>' . $cap->getBody() . '</ul>' . |
50 | 50 | $cap->getNavigationBar() . |
— | — | @@ -118,16 +118,21 @@ |
119 | 119 | return Xml::tags( 'li', null, $this->getLanguage()->specialList( $titleText, $count ) ) . "\n"; |
120 | 120 | } |
121 | 121 | |
122 | | - public function getStartForm( $from ) { |
123 | | - global $wgScript; |
| 122 | + protected function getHTMLFormFields() { |
| 123 | + return array( |
| 124 | + 'From' => array( |
| 125 | + 'type' => 'text', |
| 126 | + 'label-message' => 'categoriesfrom', |
| 127 | + 'size' => '20', |
| 128 | + ), |
| 129 | + ); |
| 130 | + } |
124 | 131 | |
125 | | - return |
126 | | - Xml::tags( 'form', array( 'method' => 'get', 'action' => $wgScript ), |
127 | | - Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . |
128 | | - Xml::fieldset( $this->msg( 'categories' )->text(), |
129 | | - Xml::inputLabel( $this->msg( 'categoriesfrom' )->text(), |
130 | | - 'from', 'from', 20, $from ) . |
131 | | - ' ' . |
132 | | - Xml::submitButton( $this->msg( 'allpagessubmit' )->text() ) ) ); |
| 132 | + protected function getHTMLFormLegend() { |
| 133 | + return 'categories'; |
133 | 134 | } |
| 135 | + |
| 136 | + protected function getHTMLFormSubmit() { |
| 137 | + return 'allpagessubmit'; |
| 138 | + } |
134 | 139 | } |