From 3351894705fa0b910106659e02883d6782fca955 Mon Sep 17 00:00:00 2001 From: Umherirrender Date: Wed, 27 Dec 2017 03:04:45 +0100 Subject: [PATCH] Add grep comment for js vars wgRestriction* Change-Id: I974841acf97e9426ed2338f210821e91d7f94286 --- includes/OutputPage.php | 2 ++ 1 file changed, 2 insertions(+) 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 ); } -- 2.20.1