Index: trunk/phase3/includes/specials/SpecialNewimages.php |
— | — | @@ -30,16 +30,15 @@ |
31 | 31 | $this->setHeaders(); |
32 | 32 | $this->outputHeader(); |
33 | 33 | |
| 34 | + $out = $this->getOutput(); |
34 | 35 | $pager = new NewFilesPager( $this->getContext(), $par ); |
35 | 36 | |
36 | 37 | if ( !$this->including() ) { |
37 | | - $form = $pager->getForm(); |
38 | | - $form->prepareForm(); |
39 | | - $form->displayForm( '' ); |
| 38 | + $out->addHTML( $pager->buildHTMLForm() ); |
40 | 39 | } |
41 | | - $this->getOutput()->addHTML( $pager->getBody() ); |
| 40 | + $out->addHTML( $pager->getBody() ); |
42 | 41 | if ( !$this->including() ) { |
43 | | - $this->getOutput()->addHTML( $pager->getNavigationBar() ); |
| 42 | + $out->addHTML( $pager->getNavigationBar() ); |
44 | 43 | } |
45 | 44 | } |
46 | 45 | } |
— | — | @@ -120,7 +119,7 @@ |
121 | 120 | ); |
122 | 121 | } |
123 | 122 | |
124 | | - function getForm() { |
| 123 | + protected function getHTMLFormFields() { |
125 | 124 | global $wgMiserMode; |
126 | 125 | |
127 | 126 | $fields = array( |
— | — | @@ -133,30 +132,21 @@ |
134 | 133 | 'type' => 'check', |
135 | 134 | 'label' => wfMessage( 'showhidebots', wfMsg( 'show' ) ), |
136 | 135 | 'name' => 'showbots', |
137 | | - # 'default' => $this->getRequest()->getBool( 'showbots', 0 ), |
138 | 136 | ), |
139 | | - 'limit' => array( |
140 | | - 'type' => 'hidden', |
141 | | - 'default' => $this->getRequest()->getText( 'limit' ), |
142 | | - 'name' => 'limit', |
143 | | - ), |
144 | | - 'offset' => array( |
145 | | - 'type' => 'hidden', |
146 | | - 'default' => $this->getRequest()->getText( 'offset' ), |
147 | | - 'name' => 'offset', |
148 | | - ), |
149 | 137 | ); |
150 | 138 | |
151 | 139 | if( $wgMiserMode ){ |
152 | 140 | unset( $fields['like'] ); |
153 | 141 | } |
154 | 142 | |
155 | | - $form = new HTMLForm( $fields, $this->getContext() ); |
156 | | - $form->setTitle( $this->getTitle() ); |
157 | | - $form->setSubmitText( wfMsg( 'ilsubmit' ) ); |
158 | | - $form->setMethod( 'get' ); |
159 | | - $form->setWrapperLegend( wfMsg( 'newimages-legend' ) ); |
| 143 | + return $fields; |
| 144 | + } |
160 | 145 | |
161 | | - return $form; |
| 146 | + protected function getHTMLFormLegend() { |
| 147 | + return 'newimages-legend'; |
162 | 148 | } |
| 149 | + |
| 150 | + protected function getHTMLFormSubmit() { |
| 151 | + return 'ilsubmit'; |
| 152 | + } |
163 | 153 | } |