Skip to content

Commit

Permalink
Disable update of GeoIP databases if admin geoip is disabled
Browse files Browse the repository at this point in the history
  • Loading branch information
mattab committed Jan 7, 2014
1 parent c438509 commit 920b45d
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions plugins/UserCountry/UserCountry.php
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,10 @@ public function setTrackerCacheGeneral(&$cache)

public function getScheduledTasks(&$tasks)
{
// add the auto updater task
$tasks[] = GeoIPAutoUpdater::makeScheduledTask();
// add the auto updater task if GeoIP admin is enabled
if($this->isGeoLocationAdminEnabled()) {
$tasks[] = GeoIPAutoUpdater::makeScheduledTask();
}
}

public function getStylesheetFiles(&$stylesheets)
Expand Down

0 comments on commit 920b45d

Please sign in to comment.