diff options
author | John Maguire <contact@johnmaguire.me> | 2015-12-22 03:31:50 +0300 |
---|---|---|
committer | John Maguire <contact@johnmaguire.me> | 2015-12-22 03:31:50 +0300 |
commit | c145963a12a5bf7605fff1d72333a747a24442d3 (patch) | |
tree | e38e09727228d45eeea97c2565a8d81a32ec1c4c /libs/PiwikTracker | |
parent | 216e922e2ae34c48e0e56d72cb13808e3158f511 (diff) |
Add version test Exception in PiwikTracker.php
Diffstat (limited to 'libs/PiwikTracker')
-rw-r--r-- | libs/PiwikTracker/PiwikTracker.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/libs/PiwikTracker/PiwikTracker.php b/libs/PiwikTracker/PiwikTracker.php index 834797a0de..f5b6fad9aa 100644 --- a/libs/PiwikTracker/PiwikTracker.php +++ b/libs/PiwikTracker/PiwikTracker.php @@ -13,3 +13,7 @@ if (!class_exists('PiwikTracker')) { require_once __DIR__ . '/../../vendor/piwik/piwik-php-tracker/PiwikTracker.php'; } + +if (PiwikTracker::VERSION !== 1) { + throw new Exception("Expected PiwikTracker in libs/PiwikTracker/PiwikTracker.php to be version 1 for keeping backward compatibility."); +} |