From 1e663037cbb52f7f82a1c080518fd71eb15404b6 Mon Sep 17 00:00:00 2001 From: sgiehl Date: Sat, 13 Dec 2014 19:51:08 +0100 Subject: [PATCH] activate plugin on update --- core/Updates/2.10.0-b7.php | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/core/Updates/2.10.0-b7.php b/core/Updates/2.10.0-b7.php index a44117fc811..21a5e7b1af1 100644 --- a/core/Updates/2.10.0-b7.php +++ b/core/Updates/2.10.0-b7.php @@ -38,6 +38,13 @@ static function getSql() static function update() { Updater::updateDatabase(__FILE__, self::getSql()); + + $pluginManager = \Piwik\Plugin\Manager::getInstance(); + + try { + $pluginManager->activatePlugin('Resolution'); + } catch(\Exception $e) { + } } }