From: Umherirrender Date: Wed, 27 Dec 2017 02:04:45 +0000 (+0100) Subject: Add grep comment for js vars wgRestriction* X-Git-Tag: 1.31.0-rc.0~1076^2 X-Git-Url: http://git.cyclocoop.org/%22%20.%20generer_url_ecrire%28%22articles%22%2C%22id_article=%24id_article%22%29%20.%20%22?a=commitdiff_plain;h=3351894705fa0b910106659e02883d6782fca955;p=lhc%2Fweb%2Fwiklou.git Add grep comment for js vars wgRestriction* Change-Id: I974841acf97e9426ed2338f210821e91d7f94286 --- diff --git a/includes/OutputPage.php b/includes/OutputPage.php index 9cf94d866e..1c2c29dca3 100644 --- a/includes/OutputPage.php +++ b/includes/OutputPage.php @@ -3243,6 +3243,8 @@ class OutputPage extends ContextSource { && ( $relevantTitle->exists() || $relevantTitle->quickUserCan( 'create', $user ) ); foreach ( $title->getRestrictionTypes() as $type ) { + // Following keys are set in $vars: + // wgRestrictionCreate, wgRestrictionEdit, wgRestrictionMove, wgRestrictionUpload $vars['wgRestriction' . ucfirst( $type )] = $title->getRestrictions( $type ); }