From 94c3ab8bc97f29c61c1b56dc5512660ff667cf8e Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?K=C3=A9vin=20Subileau?= <github@kevinsubileau.fr> Date: Mon, 26 Dec 2016 18:44:10 +0100 Subject: [PATCH] Recreate web.config files on next upgrade to enable woff files --- core/Updates/3.0.1.php | 23 +++++++++++++++++++++++ core/Version.php | 2 +- 2 files changed, 24 insertions(+), 1 deletion(-) create mode 100644 core/Updates/3.0.1.php diff --git a/core/Updates/3.0.1.php b/core/Updates/3.0.1.php new file mode 100644 index 0000000000..8820be0526 --- /dev/null +++ b/core/Updates/3.0.1.php @@ -0,0 +1,23 @@ +<?php +/** + * Piwik - free/libre analytics platform + * + * @link http://piwik.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ + +namespace Piwik\Updates; + +use Piwik\Plugins\Installation\ServerFilesGenerator; +use Piwik\Updater; +use Piwik\Updates as PiwikUpdates; + +class Updates_3_0_1 extends PiwikUpdates +{ + public function doUpdate(Updater $updater) + { + // Allow IIS to serve .woff files (https://github.com/piwik/piwik/pull/11091). + ServerFilesGenerator::createFilesForSecurity(); + } +} diff --git a/core/Version.php b/core/Version.php index 964c773ece..95b6c552c4 100644 --- a/core/Version.php +++ b/core/Version.php @@ -20,7 +20,7 @@ final class Version * The current Piwik version. * @var string */ - const VERSION = '3.0.0'; + const VERSION = '3.0.1'; public function isStableVersion($version) { -- GitLab