X-Git-Url: http://git.cyclocoop.org/%7B%7B%20url_for%28%27admin_vote_del%27%2C%20idvote=vote.voteid%29%20%7D%7D?a=blobdiff_plain;f=includes%2FProtectionForm.php;h=6ce7ef475795fa3565ba9f5e6ad8f2b77a0ac4f0;hb=694fef93eaab44609c35598c1740a098c18c2320;hp=ac4ca773a749a1e86e3570d64493e83328fee212;hpb=28c6ce84c39ab99673cfd4da04c0a6b5a516405c;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/ProtectionForm.php b/includes/ProtectionForm.php index ac4ca773a7..6ce7ef4757 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' ] ); @@ -626,7 +623,7 @@ class ProtectionForm { * Show protection long extracts for this page * * @param OutputPage &$out - * @access private + * @private */ function showLogExtract( &$out ) { # Show relevant lines from the protection log: