| @@ 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( |
|
| @@ 1834-1842 (lines=9) @@ | ||
| 1831 | ) . |
|
| 1832 | Xml::closeElement( 'form' ); |
|
| 1833 | ||
| 1834 | if ( $user->isAllowed( 'editinterface' ) ) { |
|
| 1835 | $link = Linker::linkKnown( |
|
| 1836 | $ctx->msg( 'deletereason-dropdown' )->inContentLanguage()->getTitle(), |
|
| 1837 | wfMessage( 'delete-edit-reasonlist' )->escaped(), |
|
| 1838 | [], |
|
| 1839 | [ 'action' => 'edit' ] |
|
| 1840 | ); |
|
| 1841 | $form .= '<p class="mw-delete-editreasons">' . $link . '</p>'; |
|
| 1842 | } |
|
| 1843 | ||
| 1844 | $outputPage->addHTML( $form ); |
|
| 1845 | ||