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