Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/matomo-org/matomo.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'core/Plugin/ReleaseChannels.php')
-rw-r--r--core/Plugin/ReleaseChannels.php12
1 files changed, 12 insertions, 0 deletions
diff --git a/core/Plugin/ReleaseChannels.php b/core/Plugin/ReleaseChannels.php
index f108a32cdf..08d95d9bb2 100644
--- a/core/Plugin/ReleaseChannels.php
+++ b/core/Plugin/ReleaseChannels.php
@@ -68,6 +68,18 @@ class ReleaseChannels
return reset($channels);
}
+ /**
+ * Sets the given release channel in config but does not save id. $config->forceSave() still needs to be called
+ * @internal tests only
+ * @param string $channel
+ */
+ public function setActiveReleaseChannelId($channel)
+ {
+ $general = Config::getInstance()->General;
+ $general['release_channel'] = $channel;
+ Config::getInstance()->General = $general;
+ }
+
public function isValidReleaseChannelId($releaseChannelId)
{
$channel = $this->factory($releaseChannelId);