diff options
author | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-20 02:45:38 +0300 |
---|---|---|
committer | Matthieu Napoli <matthieu@mnapoli.fr> | 2015-04-20 02:45:38 +0300 |
commit | 46b7d6a9f7c51a45fefaf8de2f6e072c76b9b098 (patch) | |
tree | 6483070a45170ec1423684c3b07a656d3e9fc336 /core/Tracker | |
parent | 2dd1a7b9ab1b0060065e13f32c2ef22c851f75da (diff) |
#7674 Simpler implementation since we don't have auto-update for now
Diffstat (limited to 'core/Tracker')
-rw-r--r-- | core/Tracker/Visit/SpamFilter.php | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/core/Tracker/Visit/SpamFilter.php b/core/Tracker/Visit/SpamFilter.php index 58af8c31fe..5ba7d4b6c5 100644 --- a/core/Tracker/Visit/SpamFilter.php +++ b/core/Tracker/Visit/SpamFilter.php @@ -3,7 +3,6 @@ namespace Piwik\Tracker\Visit; use Piwik\Common; -use Piwik\Container\StaticContainer; use Piwik\Tracker\Request; /** @@ -44,17 +43,9 @@ class SpamFilter return $this->spammerList; } - $file = StaticContainer::get('path.tmp') . '/spammers.txt'; - if (!file_exists($file)) { - $file = PIWIK_INCLUDE_PATH . '/vendor/piwik/referrer-spam-blacklist/spammers.txt'; - } - + $file = PIWIK_INCLUDE_PATH . '/vendor/piwik/referrer-spam-blacklist/spammers.txt'; $this->spammerList = file($file, FILE_IGNORE_NEW_LINES | FILE_SKIP_EMPTY_LINES); - if (!is_array($this->spammerList)) { - throw new \Exception(sprintf('The file %s does not contain a JSON array', $file)); - } - return $this->spammerList; } } |