$user = $context->getUser();
$output = $context->getOutput();
$lang = $context->getLanguage();
- $conf = $context->getConfig();
- $cascadingRestrictionLevels = $conf->get( 'CascadingRestrictionLevels' );
$out = '';
if ( !$this->disabled ) {
$output->addModules( 'mediawiki.legacy.protect' );
- $output->addJsConfigVars( 'wgCascadeableLevels', $cascadingRestrictionLevels );
$out .= Xml::openElement( 'form', [ 'method' => 'post',
'action' => $this->mTitle->getLocalURL( 'action=protect' ),
'id' => 'mw-Protect-Form' ] );
/**
* Show protection long extracts for this page
*
- * @param OutputPage &$out
- * @access private
+ * @param OutputPage $out
*/
- function showLogExtract( &$out ) {
+ private function showLogExtract( OutputPage $out ) {
# Show relevant lines from the protection log:
$protectLogPage = new LogPage( 'protect' );
$out->addHTML( Xml::element( 'h2', null, $protectLogPage->getName()->text() ) );