| @@ 1856-1864 (lines=9) @@ | ||
| 1853 | ) . |
|
| 1854 | Xml::closeElement( 'form' ); |
|
| 1855 | ||
| 1856 | if ( $user->isAllowed( 'editinterface' ) ) { |
|
| 1857 | $link = Linker::linkKnown( |
|
| 1858 | $ctx->msg( 'deletereason-dropdown' )->inContentLanguage()->getTitle(), |
|
| 1859 | wfMessage( 'delete-edit-reasonlist' )->escaped(), |
|
| 1860 | [], |
|
| 1861 | [ 'action' => 'edit' ] |
|
| 1862 | ); |
|
| 1863 | $form .= '<p class="mw-delete-editreasons">' . $link . '</p>'; |
|
| 1864 | } |
|
| 1865 | ||
| 1866 | $outputPage->addHTML( $form ); |
|
| 1867 | ||
| @@ 545-553 (lines=9) @@ | ||
| 542 | } |
|
| 543 | $out .= Xml::closeElement( 'fieldset' ); |
|
| 544 | ||
| 545 | if ( $user->isAllowed( 'editinterface' ) ) { |
|
| 546 | $link = Linker::linkKnown( |
|
| 547 | $context->msg( 'protect-dropdown' )->inContentLanguage()->getTitle(), |
|
| 548 | $context->msg( 'protect-edit-reasonlist' )->escaped(), |
|
| 549 | [], |
|
| 550 | [ 'action' => 'edit' ] |
|
| 551 | ); |
|
| 552 | $out .= '<p class="mw-protect-editreasons">' . $link . '</p>'; |
|
| 553 | } |
|
| 554 | ||
| 555 | if ( !$this->disabled ) { |
|
| 556 | $out .= Html::hidden( |
|