X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=7972a1ebe45a0c7ec23157ad588b503480858ccd;hb=3f1474de5d9d3980acd895c9accfe361f8a6dbaf;hp=ac4ca773a749a1e86e3570d64493e83328fee212;hpb=b6ee3e52534e0c76598383318a97a0c385dd3236;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index ac4ca773a7..7972a1ebe4 100644 --- a/includes/ProtectionForm.php +++ b/includes/ProtectionForm.php @@ -353,12 +353,9 @@ class ProtectionForm { $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' ] ); @@ -625,10 +622,9 @@ class ProtectionForm { /** * 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() ) );