From e49ad8bc80f1b973f0ef65f1868b44ee31a59877 Mon Sep 17 00:00:00 2001 From: lens0021 Date: Wed, 11 Dec 2019 04:09:09 +0900 Subject: [PATCH] Add allow URL for TemplateStyles Closes https://github.com/femiwiki/docker-mediawiki/issues/326 --- LocalSettings.php | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/LocalSettings.php b/LocalSettings.php index 970d0c3..e2477f2 100644 --- a/LocalSettings.php +++ b/LocalSettings.php @@ -571,6 +571,11 @@ // TemplateStyles wfLoadExtension( 'TemplateStyles' ); +$wgTemplateStylesAllowedUrls = [ + 'font' => [ + '<^https://fonts\\.googleapis\\.com/css(?:[?#]|$)>', + ], +]; // TemplateWizard wfLoadExtension( 'TemplateWizard' );