Page MenuHomePhabricator

Don't export wgEnabledQuickSurveys to mw.config on all requests
Closed, ResolvedPublic

Description

Currently on all responses mw.config includes the wiki survey configuration, wgEnabledQuickSurveys . But, its only needed in a single place in the javascript, ext.quicksurveys.lib/lib.js, which is part of the ext.quicksurveys.lib module that already uses package files. Instead of always adding to mw.config, it should be injected via a virtual file.

Event Timeline

Restricted Application added a subscriber: Aklapper. · View Herald Transcript

Change 723705 had a related patch set uploaded (by DannyS712; author: DannyS712):

[mediawiki/extensions/QuickSurveys@master] Export wgEnabledQuickSurveys via package files instead of mw.config

https://gerrit.wikimedia.org/r/723705

Change 723705 merged by jenkins-bot:

[mediawiki/extensions/QuickSurveys@master] Export wgEnabledQuickSurveys via package files instead of mw.config

https://gerrit.wikimedia.org/r/723705