diff options
author | Stefan Giehl <stefan@matomo.org> | 2021-06-14 23:46:39 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-06-14 23:46:39 +0300 |
commit | 03410d62c6885010bc0968dca9ebe5e23b7c8e87 (patch) | |
tree | 7af15e34fc9221684247c82a49e9c42b40193c92 /core | |
parent | 6eec10098f09e7eb87f0c1259ed4f3b242d74757 (diff) |
Disable logme functionality by default (#17665)
* Disable logme functionallity by default
* add changelog
Diffstat (limited to 'core')
-rw-r--r-- | core/Updates/4.4.0-b1.php | 42 | ||||
-rw-r--r-- | core/Version.php | 2 |
2 files changed, 43 insertions, 1 deletions
diff --git a/core/Updates/4.4.0-b1.php b/core/Updates/4.4.0-b1.php new file mode 100644 index 0000000000..b566c8dc05 --- /dev/null +++ b/core/Updates/4.4.0-b1.php @@ -0,0 +1,42 @@ +<?php +/** + * Matomo - free/libre analytics platform + * + * @link https://matomo.org + * @license http://www.gnu.org/licenses/gpl-3.0.html GPL v3 or later + * + */ + +namespace Piwik\Updates; + +use Piwik\Updater; +use Piwik\Updates as PiwikUpdates; +use Piwik\Updater\Migration\Factory as MigrationFactory; + +/** + * Update for version 4.4.0-b1. + */ +class Updates_4_4_0_b1 extends PiwikUpdates +{ + /** + * @var MigrationFactory + */ + private $migration; + + public function __construct(MigrationFactory $factory) + { + $this->migration = $factory; + } + + public function getMigrations(Updater $updater) + { + $migrations = []; + $migrations[] = $this->migration->config->set('General', 'login_allow_logme', '1'); + return $migrations; + } + + public function doUpdate(Updater $updater) + { + $updater->executeMigrations(__FILE__, $this->getMigrations($updater)); + } +} diff --git a/core/Version.php b/core/Version.php index 0905e0d036..4e04a24bcb 100644 --- a/core/Version.php +++ b/core/Version.php @@ -20,7 +20,7 @@ final class Version * The current Matomo version. * @var string */ - const VERSION = '4.3.1'; + const VERSION = '4.4.0-b1'; const MAJOR_VERSION = 4; public function isStableVersion($version) |