Index: trunk/extensions/Survey/specials/SpecialSurvey.php |
— | — | @@ -309,10 +309,11 @@ |
310 | 310 | |
311 | 311 | // getContext was added in 1.18 and since that version is |
312 | 312 | // the second argument for the HTMLForm constructor. |
313 | | - if ( is_callable( array( $this, 'getContext' ) ) ) { |
| 313 | + if ( version_compare( $GLOBALS['wgVersion'], '1.18', '>=' ) ) { |
314 | 314 | $form = new HTMLForm( $fields, $this->getContext() ); |
315 | 315 | } else { |
316 | 316 | $form = new HTMLForm( $fields ); |
| 317 | + $form->setTitle( $this->getTitle() ); |
317 | 318 | } |
318 | 319 | |
319 | 320 | $form->setSubmitText( wfMsg( 'surveys-special-save' ) ); |