Merge "Print logs generated during unit test when test fails"
[lhc/web/wiklou.git] / includes / ProtectionForm.php
index ac4ca77..6ce7ef4 100644 (file)
@@ -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: