mediawiki-extensions-Popups/includes
Piotr Miazga 9590284c70 Sanitize gadget name
MediaWikiGadgetsDefinition does some basic gadget name sanitization
and we have to do the same when checking "is gadget enabled for user"

Changes:
 - sanitize gadget name same way as
   MediaWikiGadgetsDefinitionRepo::newFromDefinition() does.
 - add try{} catch() when loading gadget as getGadget might throw an
   exception

Bug: T160081
Change-Id: Ia7a57e9dcfa3b25129d6d2bf75795372fad2b251
2017-04-17 17:29:32 +00:00
..
PopupsContext.php Remove hard dependency on BetaFeatures 2017-03-30 21:00:59 +01:00
PopupsGadgetsIntegration.php Sanitize gadget name 2017-04-17 17:29:32 +00:00
PopupsHooks.php Don't load entire codebase in QUnit tests 2017-04-14 17:59:32 +01:00