Commit 12584eed authored by Thomas Löffler's avatar Thomas Löffler

Updates version record in repository to save download

parent ec385b89
Pipeline #2174 passed with stages
in 1 minute and 27 seconds
......@@ -479,10 +479,11 @@ class ExtensionController extends \T3o\TerFe2\Controller\AbstractController
if (!empty($this->settings['countDownloads'])) {
$extensionKey = $extension->getExtKey();
$downloads = $this->session->get('downloads');
$versionRepository = $this->objectManager->get(\T3o\TerFe2\Domain\Repository\VersionRepository::class);
if (empty($downloads) || !in_array($extensionKey, $downloads)) {
// Add +1 to download counter and save immediately
// Add extension key to session
$downloads[] = $extensionKey;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment