diff options
Diffstat (limited to 'core/Updates/2.16.2-rc2.php')
-rw-r--r-- | core/Updates/2.16.2-rc2.php | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/core/Updates/2.16.2-rc2.php b/core/Updates/2.16.2-rc2.php new file mode 100644 index 0000000000..13817024f9 --- /dev/null +++ b/core/Updates/2.16.2-rc2.php @@ -0,0 +1,34 @@ +<?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\Updater; +use Piwik\Updates as PiwikUpdates; + +/** + * Update for version 2.16.2-rc2 + */ +class Updates_2_16_2_rc2 extends PiwikUpdates +{ + + public function doUpdate(Updater $updater) + { + try { + \Piwik\Plugin\Manager::getInstance()->activatePlugin('ProfessionalServices'); + } catch (\Exception $e) { + } + + try { + \Piwik\Plugin\Manager::getInstance()->deactivatePlugin('PiwikPro'); + self::deletePluginFromConfigFile('PiwikPro'); + } catch (\Exception $e) { + } + } +} |