Piwik\Plugins\UserCountry\Controller::getNextMissingDbUrlInfo PHP Method

getNextMissingDbUrlInfo() private method

Gets information for the first missing GeoIP database (if any).
private getNextMissingDbUrlInfo ( ) : boolean
return boolean
    private function getNextMissingDbUrlInfo()
    {
        $missingDbs = GeoIPAutoUpdater::getMissingDatabases();
        if (!empty($missingDbs)) {
            $missingDbKey = $missingDbs[0];
            $missingDbName = GeoIp::$dbNames[$missingDbKey][0];
            $url = GeoIPAutoUpdater::getConfiguredUrl($missingDbKey);
            $link = '<a href="' . $url . '">' . $missingDbName . '</a>';
            return array('to_download' => $missingDbKey, 'to_download_label' => Piwik::translate('UserCountry_DownloadingDb', $link) . '...');
        }
        return false;
    }