Index: trunk/extensions/CentralNotice/special/SpecialNoticeTemplate.php |
— | — | @@ -47,7 +47,7 @@ |
48 | 48 | CentralNotice::printHeader(); |
49 | 49 | |
50 | 50 | // Begin Banners tab content |
51 | | - $wgOut->addHTML( Xml::openElement( 'div', array( 'id' => 'preferences' ) ) ); |
| 51 | + $wgOut->addHTML( Html::openElement( 'div', array( 'id' => 'preferences' ) ) ); |
52 | 52 | |
53 | 53 | $method = $wgRequest->getVal( 'wpMethod' ); |
54 | 54 | |
— | — | @@ -121,14 +121,14 @@ |
122 | 122 | if ( $sub == 'view' && $wgRequest->getVal( 'wpUserLanguage' ) == 'all' ) { |
123 | 123 | $template = $wgRequest->getVal( 'template' ); |
124 | 124 | $this->showViewAvailable( $template ); |
125 | | - $wgOut->addHTML( Xml::closeElement( 'div' ) ); |
| 125 | + $wgOut->addHTML( Html::closeElement( 'div' ) ); |
126 | 126 | return; |
127 | 127 | } |
128 | 128 | |
129 | 129 | // Handle viewing a specific banner |
130 | 130 | if ( $sub == 'view' && $wgRequest->getText( 'template' ) != '' ) { |
131 | 131 | $this->showView(); |
132 | | - $wgOut->addHTML( Xml::closeElement( 'div' ) ); |
| 132 | + $wgOut->addHTML( Html::closeElement( 'div' ) ); |
133 | 133 | return; |
134 | 134 | } |
135 | 135 | |
— | — | @@ -136,7 +136,7 @@ |
137 | 137 | // Handle showing "Add a banner" interface |
138 | 138 | if ( $sub == 'add' ) { |
139 | 139 | $this->showAdd(); |
140 | | - $wgOut->addHTML( Xml::closeElement( 'div' ) ); |
| 140 | + $wgOut->addHTML( Html::closeElement( 'div' ) ); |
141 | 141 | return; |
142 | 142 | } |
143 | 143 | |
— | — | @@ -166,7 +166,7 @@ |
167 | 167 | $this->showList(); |
168 | 168 | |
169 | 169 | // End Banners tab content |
170 | | - $wgOut->addHTML( Xml::closeElement( 'div' ) ); |
| 170 | + $wgOut->addHTML( Html::closeElement( 'div' ) ); |
171 | 171 | } |
172 | 172 | |
173 | 173 | /** |
— | — | @@ -182,15 +182,15 @@ |
183 | 183 | $htmlOut = ''; |
184 | 184 | |
185 | 185 | // Begin Manage Banners fieldset |
186 | | - $htmlOut .= Xml::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
| 186 | + $htmlOut .= Html::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
187 | 187 | |
188 | 188 | if ( !$pager->getNumRows() ) { |
189 | | - $htmlOut .= Xml::element( 'p', null, wfMsg( 'centralnotice-no-templates' ) ); |
| 189 | + $htmlOut .= Html::element( 'p', null, wfMsg( 'centralnotice-no-templates' ) ); |
190 | 190 | } else { |
191 | 191 | if ( $this->editable ) { |
192 | | - $htmlOut .= Xml::openElement( 'form', array( 'method' => 'post' ) ); |
| 192 | + $htmlOut .= Html::openElement( 'form', array( 'method' => 'post' ) ); |
193 | 193 | } |
194 | | - $htmlOut .= Xml::element( 'h2', null, wfMsg( 'centralnotice-manage-templates' ) ); |
| 194 | + $htmlOut .= Html::element( 'h2', null, wfMsg( 'centralnotice-manage-templates' ) ); |
195 | 195 | |
196 | 196 | // Show paginated list of banners |
197 | 197 | $htmlOut .= Xml::tags( 'div', array( 'class' => 'cn-pager' ), |
— | — | @@ -200,18 +200,18 @@ |
201 | 201 | $pager->getNavigationBar() ); |
202 | 202 | |
203 | 203 | if ( $this->editable ) { |
204 | | - $htmlOut .= Xml::closeElement( 'form' ); |
| 204 | + $htmlOut .= Html::closeElement( 'form' ); |
205 | 205 | } |
206 | 206 | } |
207 | 207 | |
208 | 208 | if ( $this->editable ) { |
209 | | - $htmlOut .= Xml::element( 'p' ); |
| 209 | + $htmlOut .= Html::element( 'p' ); |
210 | 210 | $newPage = $this->getTitle( 'add' ); |
211 | 211 | $htmlOut .= $sk->makeLinkObj( $newPage, wfMsgHtml( 'centralnotice-add-template' ) ); |
212 | 212 | } |
213 | 213 | |
214 | 214 | // End Manage Banners fieldset |
215 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
| 215 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
216 | 216 | |
217 | 217 | $wgOut->addHTML( $htmlOut ); |
218 | 218 | } |
— | — | @@ -226,10 +226,10 @@ |
227 | 227 | |
228 | 228 | // Build HTML |
229 | 229 | $htmlOut = ''; |
230 | | - $htmlOut .= Xml::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
231 | | - $htmlOut .= Xml::openElement( 'form', |
| 230 | + $htmlOut .= Html::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
| 231 | + $htmlOut .= Html::openElement( 'form', |
232 | 232 | array( 'method' => 'post', 'onsubmit' => 'return validateBannerForm(this)' ) ); |
233 | | - $htmlOut .= Xml::element( 'h2', null, wfMsg( 'centralnotice-add-template' ) ); |
| 233 | + $htmlOut .= Html::element( 'h2', null, wfMsg( 'centralnotice-add-template' ) ); |
234 | 234 | $htmlOut .= Html::hidden( 'wpMethod', 'addTemplate' ); |
235 | 235 | |
236 | 236 | // If there was an error, we'll need to restore the state of the form |
— | — | @@ -257,22 +257,22 @@ |
258 | 258 | ); |
259 | 259 | |
260 | 260 | // Display settings |
261 | | - $htmlOut .= Xml::openElement( 'p', null ); |
| 261 | + $htmlOut .= Html::openElement( 'p', null ); |
262 | 262 | $htmlOut .= wfMsg( 'centralnotice-banner-display' ); |
263 | 263 | $htmlOut .= Xml::check( 'displayAnon', $displayAnon, array( 'id' => 'displayAnon' ) ); |
264 | 264 | $htmlOut .= Xml::label( wfMsg( 'centralnotice-banner-anonymous' ), 'displayAnon' ); |
265 | 265 | $htmlOut .= Xml::check( 'displayAccount', $displayAccount, |
266 | 266 | array( 'id' => 'displayAccount' ) ); |
267 | 267 | $htmlOut .= Xml::label( wfMsg( 'centralnotice-banner-logged-in' ), 'displayAccount' ); |
268 | | - $htmlOut .= Xml::closeElement( 'p' ); |
| 268 | + $htmlOut .= Html::closeElement( 'p' ); |
269 | 269 | |
270 | 270 | // Fundraising settings |
271 | 271 | if ( $wgNoticeEnableFundraising ) { |
272 | | - $htmlOut .= Xml::openElement( 'p', null ); |
| 272 | + $htmlOut .= Html::openElement( 'p', null ); |
273 | 273 | $htmlOut .= Xml::check( 'fundraising', $fundraising, array( 'id' => 'fundraising' ) ); |
274 | 274 | $htmlOut .= Xml::label( wfMsg( 'centralnotice-banner-fundraising' ), 'fundraising' ); |
275 | | - $htmlOut .= Xml::closeElement( 'p' ); |
276 | | - $htmlOut .= Xml::openElement( 'div', |
| 275 | + $htmlOut .= Html::closeElement( 'p' ); |
| 276 | + $htmlOut .= Html::openElement( 'div', |
277 | 277 | array( 'id' => 'fundraisingInterface', 'style' => 'display: none;' ) ); |
278 | 278 | $htmlOut .= Xml::tags( 'p', array(), wfMsg( 'centralnotice-banner-fundraising-help' ) ); |
279 | 279 | $htmlOut .= Xml::tags( 'p', array(), |
— | — | @@ -282,7 +282,7 @@ |
283 | 283 | array( 'maxlength' => 255 ) |
284 | 284 | ) |
285 | 285 | ); |
286 | | - $htmlOut .= Xml::closeElement( 'div' ); |
| 286 | + $htmlOut .= Html::closeElement( 'div' ); |
287 | 287 | } |
288 | 288 | |
289 | 289 | // Begin banner body section |
— | — | @@ -297,8 +297,8 @@ |
298 | 298 | wfMsg( 'centralnotice-insert', $wgLang->commaList( $buttons ) ) |
299 | 299 | ); |
300 | 300 | |
301 | | - $htmlOut .= Xml::textarea( 'templateBody', $body, 60, 20 ); |
302 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
| 301 | + $htmlOut .= Html::textarea( 'templateBody', $body, 60, 20 ); |
| 302 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
303 | 303 | $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
304 | 304 | |
305 | 305 | // Submit button |
— | — | @@ -307,8 +307,8 @@ |
308 | 308 | Xml::submitButton( wfMsg( 'centralnotice-save-banner' ) ) |
309 | 309 | ); |
310 | 310 | |
311 | | - $htmlOut .= Xml::closeElement( 'form' ); |
312 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
| 311 | + $htmlOut .= Html::closeElement( 'form' ); |
| 312 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
313 | 313 | |
314 | 314 | // Output HTML |
315 | 315 | $wgOut->addHTML( $htmlOut ); |
— | — | @@ -348,9 +348,9 @@ |
349 | 349 | $htmlOut = ''; |
350 | 350 | |
351 | 351 | // Begin View Banner fieldset |
352 | | - $htmlOut .= Xml::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
| 352 | + $htmlOut .= Html::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
353 | 353 | |
354 | | - $htmlOut .= Xml::element( 'h2', null, |
| 354 | + $htmlOut .= Html::element( 'h2', null, |
355 | 355 | wfMsg( 'centralnotice-banner-heading', $currentTemplate ) ); |
356 | 356 | |
357 | 357 | // Show preview of banner |
— | — | @@ -387,14 +387,14 @@ |
388 | 388 | // If there are any message fields in the banner, display translation tools. |
389 | 389 | if ( count( $fields[0] ) > 0 ) { |
390 | 390 | if ( $this->editable ) { |
391 | | - $htmlOut .= Xml::openElement( 'form', array( 'method' => 'post' ) ); |
| 391 | + $htmlOut .= Html::openElement( 'form', array( 'method' => 'post' ) ); |
392 | 392 | } |
393 | 393 | $htmlOut .= Xml::fieldset( |
394 | 394 | wfMsg( 'centralnotice-translate-heading', $currentTemplate ), |
395 | 395 | false, |
396 | 396 | array( 'id' => 'mw-centralnotice-translations-for' ) |
397 | 397 | ); |
398 | | - $htmlOut .= Xml::openElement( 'table', |
| 398 | + $htmlOut .= Html::openElement( 'table', |
399 | 399 | array ( |
400 | 400 | 'cellpadding' => 9, |
401 | 401 | 'width' => '100%' |
— | — | @@ -402,14 +402,14 @@ |
403 | 403 | ); |
404 | 404 | |
405 | 405 | // Table headers |
406 | | - $htmlOut .= Xml::element( 'th', array( 'width' => '15%' ), |
| 406 | + $htmlOut .= Html::element( 'th', array( 'width' => '15%' ), |
407 | 407 | wfMsg( 'centralnotice-message' ) ); |
408 | | - $htmlOut .= Xml::element( 'th', array( 'width' => '5%' ), |
| 408 | + $htmlOut .= Html::element( 'th', array( 'width' => '5%' ), |
409 | 409 | wfMsg ( 'centralnotice-number-uses' ) ); |
410 | | - $htmlOut .= Xml::element( 'th', array( 'width' => '40%' ), |
| 410 | + $htmlOut .= Html::element( 'th', array( 'width' => '40%' ), |
411 | 411 | wfMsg ( 'centralnotice-english' ) ); |
412 | 412 | $languages = Language::getLanguageNames(); |
413 | | - $htmlOut .= Xml::element( 'th', array( 'width' => '40%' ), |
| 413 | + $htmlOut .= Html::element( 'th', array( 'width' => '40%' ), |
414 | 414 | $languages[$wpUserLang] ); |
415 | 415 | |
416 | 416 | // Remove duplicate message fields |
— | — | @@ -427,14 +427,14 @@ |
428 | 428 | : "Centralnotice-{$currentTemplate}-{$field}/{$wpUserLang}"; |
429 | 429 | |
430 | 430 | // English value |
431 | | - $htmlOut .= Xml::openElement( 'tr' ); |
| 431 | + $htmlOut .= Html::openElement( 'tr' ); |
432 | 432 | |
433 | 433 | $title = Title::newFromText( "MediaWiki:{$message}" ); |
434 | 434 | $htmlOut .= Xml::tags( 'td', null, |
435 | 435 | $sk->makeLinkObj( $title, htmlspecialchars( $field ) ) |
436 | 436 | ); |
437 | 437 | |
438 | | - $htmlOut .= Xml::element( 'td', null, $count ); |
| 438 | + $htmlOut .= Html::element( 'td', null, $count ); |
439 | 439 | |
440 | 440 | // English text |
441 | 441 | $englishText = wfMsg( 'centralnotice-message-not-set' ); |
— | — | @@ -450,7 +450,7 @@ |
451 | 451 | $englishTextExists = true; |
452 | 452 | } |
453 | 453 | $htmlOut .= Xml::tags( 'td', null, |
454 | | - Xml::element( 'span', |
| 454 | + Html::element( 'span', |
455 | 455 | array( |
456 | 456 | 'style' => 'font-style:italic;' . |
457 | 457 | ( !$englishTextExists ? 'color:silver' : '' ) |
— | — | @@ -478,9 +478,9 @@ |
479 | 479 | ( !$foreignTextExists ? 'color:red' : '' ) ) ) |
480 | 480 | ) |
481 | 481 | ); |
482 | | - $htmlOut .= Xml::closeElement( 'tr' ); |
| 482 | + $htmlOut .= Html::closeElement( 'tr' ); |
483 | 483 | } |
484 | | - $htmlOut .= Xml::closeElement( 'table' ); |
| 484 | + $htmlOut .= Html::closeElement( 'table' ); |
485 | 485 | |
486 | 486 | if ( $this->editable ) { |
487 | 487 | $htmlOut .= Html::hidden( 'wpUserLanguage', $wpUserLang ); |
— | — | @@ -494,19 +494,19 @@ |
495 | 495 | ); |
496 | 496 | } |
497 | 497 | |
498 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
| 498 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
499 | 499 | |
500 | 500 | if ( $this->editable ) { |
501 | | - $htmlOut .= Xml::closeElement( 'form' ); |
| 501 | + $htmlOut .= Html::closeElement( 'form' ); |
502 | 502 | } |
503 | 503 | |
504 | 504 | // Show language selection form |
505 | 505 | $actionTitle = $this->getTitleFor( 'NoticeTemplate', 'view' ); |
506 | 506 | $actionUrl = $actionTitle->getLocalURL(); |
507 | | - $htmlOut .= Xml::openElement( 'form', array( 'method' => 'get', 'action' => $actionUrl ) ); |
| 507 | + $htmlOut .= Html::openElement( 'form', array( 'method' => 'get', 'action' => $actionUrl ) ); |
508 | 508 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-change-lang' ) ); |
509 | 509 | $htmlOut .= Html::hidden( 'template', $currentTemplate ); |
510 | | - $htmlOut .= Xml::openElement( 'table', array ( 'cellpadding' => 9 ) ); |
| 510 | + $htmlOut .= Html::openElement( 'table', array ( 'cellpadding' => 9 ) ); |
511 | 511 | list( $lsLabel, $lsSelect ) = Xml::languageSelector( $wpUserLang ); |
512 | 512 | |
513 | 513 | $newPage = $this->getTitle( 'view' ); |
— | — | @@ -527,14 +527,14 @@ |
528 | 528 | "template=$currentTemplate&wpUserLanguage=all" ) |
529 | 529 | ) |
530 | 530 | ); |
531 | | - $htmlOut .= Xml::closeElement( 'table' ); |
532 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
533 | | - $htmlOut .= Xml::closeElement( 'form' ); |
| 531 | + $htmlOut .= Html::closeElement( 'table' ); |
| 532 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
| 533 | + $htmlOut .= Html::closeElement( 'form' ); |
534 | 534 | } |
535 | 535 | |
536 | 536 | // Show edit form |
537 | 537 | if ( $this->editable ) { |
538 | | - $htmlOut .= Xml::openElement( 'form', |
| 538 | + $htmlOut .= Html::openElement( 'form', |
539 | 539 | array( |
540 | 540 | 'method' => 'post', |
541 | 541 | 'onsubmit' => 'return validateBannerForm(this)' |
— | — | @@ -560,7 +560,7 @@ |
561 | 561 | |
562 | 562 | // Show banner settings |
563 | 563 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-settings' ) ); |
564 | | - $htmlOut .= Xml::openElement( 'p', null ); |
| 564 | + $htmlOut .= Html::openElement( 'p', null ); |
565 | 565 | $htmlOut .= wfMsg( 'centralnotice-banner-display' ); |
566 | 566 | $htmlOut .= Xml::check( 'displayAnon', $displayAnon, |
567 | 567 | wfArrayMerge( $disabled, array( 'id' => 'displayAnon' ) ) ); |
— | — | @@ -568,20 +568,20 @@ |
569 | 569 | $htmlOut .= Xml::check( 'displayAccount', $displayAccount, |
570 | 570 | wfArrayMerge( $disabled, array( 'id' => 'displayAccount' ) ) ); |
571 | 571 | $htmlOut .= Xml::label( wfMsg( 'centralnotice-banner-logged-in' ), 'displayAccount' ); |
572 | | - $htmlOut .= Xml::closeElement( 'p' ); |
| 572 | + $htmlOut .= Html::closeElement( 'p' ); |
573 | 573 | |
574 | 574 | // Fundraising settings |
575 | 575 | if ( $wgNoticeEnableFundraising ) { |
576 | | - $htmlOut .= Xml::openElement( 'p', null ); |
| 576 | + $htmlOut .= Html::openElement( 'p', null ); |
577 | 577 | $htmlOut .= Xml::check( 'fundraising', $fundraising, |
578 | 578 | wfArrayMerge( $disabled, array( 'id' => 'fundraising' ) ) ); |
579 | 579 | $htmlOut .= Xml::label( wfMsg( 'centralnotice-banner-fundraising' ), |
580 | 580 | 'fundraising' ); |
581 | | - $htmlOut .= Xml::closeElement( 'p' ); |
| 581 | + $htmlOut .= Html::closeElement( 'p' ); |
582 | 582 | if ( $fundraising ) { |
583 | | - $htmlOut .= Xml::openElement( 'div', array( 'id'=>'fundraisingInterface' ) ); |
| 583 | + $htmlOut .= Html::openElement( 'div', array( 'id'=>'fundraisingInterface' ) ); |
584 | 584 | } else { |
585 | | - $htmlOut .= Xml::openElement( 'div', |
| 585 | + $htmlOut .= Html::openElement( 'div', |
586 | 586 | array( 'id'=>'fundraisingInterface', 'style'=>'display:none;' ) ); |
587 | 587 | } |
588 | 588 | $htmlOut .= Xml::tags( 'p', array(), |
— | — | @@ -593,11 +593,11 @@ |
594 | 594 | array( 'maxlength' => 255 ) |
595 | 595 | ) |
596 | 596 | ); |
597 | | - $htmlOut .= Xml::closeElement( 'div' ); |
| 597 | + $htmlOut .= Html::closeElement( 'div' ); |
598 | 598 | } |
599 | 599 | |
600 | 600 | // Begin banner body section |
601 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
| 601 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
602 | 602 | if ( $this->editable ) { |
603 | 603 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-edit-template' ) ); |
604 | 604 | $htmlOut .= wfMsg( 'centralnotice-edit-template-summary' ); |
— | — | @@ -614,7 +614,7 @@ |
615 | 615 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-banner' ) ); |
616 | 616 | } |
617 | 617 | $htmlOut .= Xml::textarea( 'templateBody', $body, 60, 20, $readonly ); |
618 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
| 618 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
619 | 619 | if ( $this->editable ) { |
620 | 620 | // Indicate which form was submitted |
621 | 621 | $htmlOut .= Html::hidden( 'mainform', 'true' ); |
— | — | @@ -623,12 +623,12 @@ |
624 | 624 | array( 'class' => 'cn-buttons' ), |
625 | 625 | Xml::submitButton( wfMsg( 'centralnotice-save-banner' ) ) |
626 | 626 | ); |
627 | | - $htmlOut .= Xml::closeElement( 'form' ); |
| 627 | + $htmlOut .= Html::closeElement( 'form' ); |
628 | 628 | } |
629 | 629 | |
630 | 630 | // Show clone form |
631 | 631 | if ( $this->editable ) { |
632 | | - $htmlOut .= Xml::openElement ( 'form', |
| 632 | + $htmlOut .= Html::openElement ( 'form', |
633 | 633 | array( |
634 | 634 | 'method' => 'post', |
635 | 635 | 'action' => $this->getTitle( 'clone' )->getLocalUrl() |
— | — | @@ -636,8 +636,8 @@ |
637 | 637 | ); |
638 | 638 | |
639 | 639 | $htmlOut .= Xml::fieldset( wfMsg( 'centralnotice-clone-notice' ) ); |
640 | | - $htmlOut .= Xml::openElement( 'table', array( 'cellpadding' => 9 ) ); |
641 | | - $htmlOut .= Xml::openElement( 'tr' ); |
| 640 | + $htmlOut .= Html::openElement( 'table', array( 'cellpadding' => 9 ) ); |
| 641 | + $htmlOut .= Html::openElement( 'tr' ); |
642 | 642 | $htmlOut .= Xml::inputLabel( |
643 | 643 | wfMsg( 'centralnotice-clone-name' ), |
644 | 644 | 'newTemplate', 'newTemplate', '25' ); |
— | — | @@ -646,15 +646,15 @@ |
647 | 647 | array ( 'id' => 'clone' ) ); |
648 | 648 | $htmlOut .= Html::hidden( 'oldTemplate', $currentTemplate ); |
649 | 649 | |
650 | | - $htmlOut .= Xml::closeElement( 'tr' ); |
651 | | - $htmlOut .= Xml::closeElement( 'table' ); |
| 650 | + $htmlOut .= Html::closeElement( 'tr' ); |
| 651 | + $htmlOut .= Html::closeElement( 'table' ); |
652 | 652 | $htmlOut .= Html::hidden( 'authtoken', $wgUser->editToken() ); |
653 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
654 | | - $htmlOut .= Xml::closeElement( 'form' ); |
| 653 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
| 654 | + $htmlOut .= Html::closeElement( 'form' ); |
655 | 655 | } |
656 | 656 | |
657 | 657 | // End View Banner fieldset |
658 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
| 658 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
659 | 659 | |
660 | 660 | // Output HTML |
661 | 661 | $wgOut->addHTML( $htmlOut ); |
— | — | @@ -677,9 +677,9 @@ |
678 | 678 | $htmlOut = ''; |
679 | 679 | |
680 | 680 | // Begin View Banner fieldset |
681 | | - $htmlOut .= Xml::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
| 681 | + $htmlOut .= Html::openElement( 'fieldset', array( 'class' => 'prefsection' ) ); |
682 | 682 | |
683 | | - $htmlOut .= Xml::element( 'h2', null, wfMsg( 'centralnotice-banner-heading', $template ) ); |
| 683 | + $htmlOut .= Html::element( 'h2', null, wfMsg( 'centralnotice-banner-heading', $template ) ); |
684 | 684 | |
685 | 685 | foreach ( $langs as $lang ) { |
686 | 686 | // Link and Preview all available translations |
— | — | @@ -704,7 +704,7 @@ |
705 | 705 | } |
706 | 706 | |
707 | 707 | // End View Banner fieldset |
708 | | - $htmlOut .= Xml::closeElement( 'fieldset' ); |
| 708 | + $htmlOut .= Html::closeElement( 'fieldset' ); |
709 | 709 | |
710 | 710 | return $wgOut->addHtml( $htmlOut ); |
711 | 711 | } |