Piwik\Updates\Updates_3_0_0_b3::doUpdate PHP Method

doUpdate() public method

public doUpdate ( Updater $updater )
$updater Piwik\Updater
    public function doUpdate(Updater $updater)
    {
        $general = $this->getConfig()->General;
        // need to check against int(0) value, as if the config setting is not set at all its value is null
        if (isset($general[$this->marketplaceEnabledConfigSetting])) {
            $isMarketplaceEnabled = 0 !== $general[$this->marketplaceEnabledConfigSetting];
            $this->removeOldMarketplaceEnabledConfig();
            if ($isMarketplaceEnabled) {
                $this->activateMarketplacePlugin();
            }
        } else {
            $this->activateMarketplacePlugin();
        }
    }